Skip to content

Commit 9a95dbf

Browse files
amscannejordalgo
authored andcommitted
tests: fix flaky predicate test
Per bpftrace#3316, there were some conditions wherein the tracepoint could be triggered multiple times. While a unit test could be added separately for the predicate casts, the integration test can be kept simply by ensuring that it tolerates additional invocations. Fixes bpftrace#3316
1 parent 0cffd87 commit 9a95dbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/runtime/variable

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ AFTER ./testprogs/syscall openat
4141

4242
NAME tracepoint arg casts in predicates
4343
RUN {{BPFTRACE}} -e 'tracepoint:syscalls:sys_enter_wait4 /args.ru/ { @ru[tid] = args.ru; } tracepoint:syscalls:sys_exit_wait4 /@ru[tid]/ { @++; exit(); }' -c ./testprogs/wait4_ru
44-
EXPECT @: 1
44+
EXPECT_REGEX @: [1-9][0-9]*
4545

4646
NAME variable string type resize
4747
PROG BEGIN { $x = "hello"; $x = "hi"; printf("%s\n", $x); exit(); }

0 commit comments

Comments
 (0)