Skip to content

Commit

Permalink
print stack trace 13
Browse files Browse the repository at this point in the history
  • Loading branch information
mftoure committed Dec 29, 2024
1 parent 5918bc0 commit 8edec03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/security/tests/module_tester_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ type testModule struct {
ruleEngine *rulesmodule.RuleEngine
tracePipe *tracePipeLogger
msgSender *fakeMsgSender
RuleID string
}

//nolint:deadcode,unused
Expand Down Expand Up @@ -828,6 +829,9 @@ func newTestModuleWithOnDemandProbes(t testing.TB, onDemandHooks []rules.OnDeman
time.Sleep(time.Second * 2) // sleep another sec to let tests starting before the tracing is ready
t.Logf("client connected")
}
if len(ruleDefs) > 0 {
testMod.RuleID = ruleDefs[0].ID
}
return testMod, nil
}

Expand Down Expand Up @@ -968,7 +972,7 @@ func (tm *testModule) validateSyscallsInFlight() {

func (tm *testModule) Close() {
if !tm.opts.staticOpts.disableRuntimeSecurity {
fmt.Println("----------------------- in close")
fmt.Println("----------------------- in close of", tm.RuleID)
tm.cws.SendStats()
tm.eventMonitor.SendStats()
}
Expand Down

0 comments on commit 8edec03

Please sign in to comment.