diff options
Diffstat (limited to 'src/gtest')
-rw-r--r-- | src/gtest/trex_stateless_gtest.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gtest/trex_stateless_gtest.cpp b/src/gtest/trex_stateless_gtest.cpp index 1ad03c63..02e84c0f 100644 --- a/src/gtest/trex_stateless_gtest.cpp +++ b/src/gtest/trex_stateless_gtest.cpp @@ -55,30 +55,27 @@ TEST_F(basic_vm, vm0) { ); vm.Dump(stdout); - - } TEST_F(basic_vm, vm1) { StreamVm vm; - vm.set_packet_size(512); - - vm.add_instruction( new StreamVmInstructionFixChecksumIpv4(20) ); + vm.add_instruction( new StreamVmInstructionFixChecksumIpv4(14) ); vm.add_instruction( new StreamVmInstructionFlowMan( "var1",1, StreamVmInstructionFlowMan::FLOW_VAR_OP_INC,0,1,7 ) ); - vm.add_instruction( new StreamVmInstructionWriteToPkt( "var1",14, 0,true) + vm.add_instruction( new StreamVmInstructionWriteToPkt( "var1",26, 0,true) ); - vm.Dump(stdout); + vm.set_packet_size(128); vm.compile_next(); } + ////////////////////////////////////////////////////// |