Skip to content

Commit

Permalink
Generated from commit 2099b1175a8346c96dd01d017998bc9cbd9a4282
Browse files Browse the repository at this point in the history
  • Loading branch information
Pusnow committed Apr 28, 2021
1 parent 1312a8c commit 22cf369
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/kens/testenv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ template <class Target> class TestEnv1 : public ::testing::Test {
switchingHub->addMACEntry(host2->getPort(0), mac2);
switchingHub->addMACEntry(host2->getPort(1), mac2_2);

const ::testing::TestInfo *const test_info =
::testing::UnitTest::GetInstance()->current_test_info();
std::string file_name(test_info->name());
file_name.append(".pcap");
switchingHub->enablePCAPLogging(file_name);

ethernet1 = new Ethernet(host1);
ethernet2 = new Ethernet(host2);
ipv4_1 = new IPv4(host1);
Expand Down

0 comments on commit 22cf369

Please sign in to comment.