Skip to content

Commit 0e97b2c

Browse files
jgkamatajor
authored andcommitted
Add tests for persisting on strace and exiting on sigint
1 parent b6bd054 commit 0e97b2c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/runtime/sigint

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
NAME strace no quit
2+
RUN bpftrace -v -e 'i:s:1 { printf("%s %d\n", "SUCCESS", 1); exit() }' & (sleep 0.5 && strace -p $! -o /dev/null)
3+
EXPECT SUCCESS 1
4+
TIMEOUT 3
5+
6+
NAME sigint quit
7+
RUN bpftrace -v -e 'END { printf("%s %d", "SUCCESS", 1) }' & (sleep 1 && /usr/bin/env kill -s SIGINT $!)
8+
EXPECT ^SUCCESS 1$
9+
TIMEOUT 2

0 commit comments

Comments
 (0)