summaryrefslogtreecommitdiffstats
path: root/host/test/vrt_test.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-12 15:19:25 -0700
committerJosh Blum <josh@joshknows.com>2010-04-12 15:19:25 -0700
commitb87d9afe82e962718f5f5d514abf9d79b9603b98 (patch)
treecaa53a69eaa9847994737748c1385a2dfd3153f8 /host/test/vrt_test.cpp
parent24ca9fbd0784c7c53af6ad4f9035e8d43e888290 (diff)
parentfa96b25b99dbd19ac0689cab9bcab84063287ad3 (diff)
downloaduhd-b87d9afe82e962718f5f5d514abf9d79b9603b98.tar.gz
uhd-b87d9afe82e962718f5f5d514abf9d79b9603b98.tar.bz2
uhd-b87d9afe82e962718f5f5d514abf9d79b9603b98.zip
Merge branch 'rfx' of git@ettus.sourcerepo.com:ettus/uhd into io
Conflicts: host/lib/usrp/usrp2/io_impl.cpp
Diffstat (limited to 'host/test/vrt_test.cpp')
-rw-r--r--host/test/vrt_test.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/host/test/vrt_test.cpp b/host/test/vrt_test.cpp
index 40116e110..939a61eb4 100644
--- a/host/test/vrt_test.cpp
+++ b/host/test/vrt_test.cpp
@@ -36,7 +36,8 @@ static void pack_and_unpack(
num_header_words32, //output
num_payload_words32, //input
num_packet_words32, //output
- packet_count //input
+ packet_count, //input
+ 100e6
);
uhd::rx_metadata_t metadata_out;
@@ -51,7 +52,8 @@ static void pack_and_unpack(
num_header_words32_out, //output
num_payload_words32_out, //output
num_packet_words32, //input
- packet_count_out //output
+ packet_count_out, //output
+ 100e6
);
//check the the unpacked metadata is the same
@@ -65,7 +67,7 @@ static void pack_and_unpack(
BOOST_CHECK_EQUAL(metadata.has_time_spec, metadata_out.has_time_spec);
if (metadata.has_time_spec and metadata_out.has_time_spec){
BOOST_CHECK_EQUAL(metadata.time_spec.secs, metadata_out.time_spec.secs);
- BOOST_CHECK_EQUAL(metadata.time_spec.ticks, metadata_out.time_spec.ticks);
+ BOOST_CHECK_EQUAL(metadata.time_spec.nsecs, metadata_out.time_spec.nsecs);
}
}
@@ -85,7 +87,7 @@ BOOST_AUTO_TEST_CASE(test_with_time_spec){
uhd::tx_metadata_t metadata;
metadata.has_time_spec = true;
metadata.time_spec.secs = 7;
- metadata.time_spec.ticks = 2000;
+ metadata.time_spec.nsecs = 2000;
pack_and_unpack(metadata, 500, 3);
}
@@ -95,6 +97,6 @@ BOOST_AUTO_TEST_CASE(test_with_sid_and_time_spec){
metadata.stream_id = 2;
metadata.has_time_spec = true;
metadata.time_spec.secs = 5;
- metadata.time_spec.ticks = 1000;
+ metadata.time_spec.nsecs = 1000;
pack_and_unpack(metadata, 600, 4);
}