summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2015-12-14 10:39:02 +0200
committerHanoh Haim <hhaim@cisco.com>2015-12-14 10:39:02 +0200
commitaf7e4fd32d1cc85eab29689e2fbe5faff98f24af (patch)
tree29a32d41ada92525966e32ab2d5ed3ea6a3b93b4
parent88fc4cd1b2b7513a47e51bccbc8f1d86a10c5e44 (diff)
big edian support another test
-rw-r--r--src/gtest/trex_stateless_gtest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gtest/trex_stateless_gtest.cpp b/src/gtest/trex_stateless_gtest.cpp
index 126d28af..d23af9db 100644
--- a/src/gtest/trex_stateless_gtest.cpp
+++ b/src/gtest/trex_stateless_gtest.cpp
@@ -252,7 +252,7 @@ TEST_F(basic_vm, vm4) {
vm.add_instruction( new StreamVmInstructionFlowMan( "var1",4 /* size */,
StreamVmInstructionFlowMan::FLOW_VAR_OP_INC,4,1,7 )
);
- vm.add_instruction( new StreamVmInstructionWriteToPkt( "var1",26, 0,true)
+ vm.add_instruction( new StreamVmInstructionWriteToPkt( "var1",26, 0,false)
);
//vm.add_instruction( new StreamVmInstructionFixChecksumIpv4(14) );
@@ -321,11 +321,11 @@ TEST_F(basic_vm, vm4) {
fprintf(stdout," %d \n",i);
//utl_DumpBuffer(stdout,test_udp_pkt,PKT_TEST_SIZE,0);
- /* big */
- EXPECT_EQ(test_udp_pkt[29],ex[i]);
+ /* not big */
+ EXPECT_EQ(test_udp_pkt[29],0);
EXPECT_EQ(test_udp_pkt[28],0);
EXPECT_EQ(test_udp_pkt[27],0);
- EXPECT_EQ(test_udp_pkt[26],0);
+ EXPECT_EQ(test_udp_pkt[26],ex[i]);
}
}