Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mmat11 committed Jan 10, 2024
1 parent 7570c1c commit b4e9342
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions testing/testrunner/tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,9 @@ func TestFileDeleteContainer(et *EventsTraceInstance) {
func TestFileModify(et *EventsTraceInstance) {
outputStr := runTestBin("create_rename_delete_file")
var binOutput struct {
ChildPid int64 `json:"child_pid"`
FileNameOrig string `json:"filename_orig"`
FileNameNew string `json:"filename_new"`
PidInfo TestPidInfo `json:"pid_info"`
FileNameOrig string `json:"filename_orig"`
FileNameNew string `json:"filename_new"`
}
if err := json.Unmarshal(outputStr, &binOutput); err != nil {
TestFail("failed to unmarshal json", err)
Expand All @@ -410,7 +410,8 @@ func TestFileModify(et *EventsTraceInstance) {
TestFail("failed to unmarshal JSON: ", err)
}

if event.Pids.Tgid == binOutput.ChildPid {
fmt.Println("grepme", event.Pids.Tid, binOutput.PidInfo.Tid, events, line, eventsCount)
if event.Pids.Tid == binOutput.PidInfo.Tid {
events = append(events, event)
eventsCount--
if eventsCount == 0 {
Expand Down

0 comments on commit b4e9342

Please sign in to comment.