Skip to content

Commit

Permalink
fix(libsinsp_e2e): paths tests cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed Mar 20, 2024
1 parent e08260d commit d05d092
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/libsinsp_e2e/paths.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,10 @@ void testdir(string filename, string chdirtarget = "")
//
// FILTER
//
event_filter_t aafilter = [&](sinsp_evt* evt)
int tid = getpid();
event_filter_t filter = [&](sinsp_evt* evt)
{
int tid = getpid();
return evt->get_tid() == tid;
// return m_tid_filter(evt);
};

//
Expand Down Expand Up @@ -192,7 +191,7 @@ void testdir(string filename, string chdirtarget = "")
captured_event_callback_t callback = [&](const callback_param& param)
{ vldt.validate(param.m_evt); };

ASSERT_NO_FATAL_FAILURE({ event_capture::run(test, callback, aafilter); });
ASSERT_NO_FATAL_FAILURE({ event_capture::run(test, callback, filter); });

EXPECT_EQ(4, vldt.m_callnum);
}
Expand Down

0 comments on commit d05d092

Please sign in to comment.