Skip to content

Commit 356312b

Browse files
committed
Show ZE call leaks in failure messages
1 parent bd5a1f0 commit 356312b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm_test_suite_sycl.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,9 @@ sub generate_run_result
817817
} elsif ($line =~ m/error: command failed with exit status: ([\-]{0,1}[0]{0,1}[x]{0,1}[0-9a-f]{1,})/) {
818818
$failure_message = "command failed with exit status $1";
819819
return $RUNFAIL;
820+
} elsif ($line =~ m/LEAK\s*\=\s*\d+/ && $current_optset =~ m/zedebug/) {
821+
$failure_message = "ZE_DEBUG detects ZE call leaks";
822+
return $RUNFAIL;
820823
}
821824
}
822825
}

0 commit comments

Comments
 (0)