| 1 |
# Check that SIGUSR2 doesn't cause errors when not using file rotation. |
| 2 |
# |
| 3 |
# It used to say something like: |
| 4 |
# stapio:open_outfile:75: ERROR: -S is set without -o. Please file a bug report. |
| 5 |
# ERROR: Couldn't open file for cpu 0, exiting.: Success |
| 6 |
|
| 7 |
|
| 8 |
set test "sigusr2" |
| 9 |
stap_run $test no_load $all_pass_string -g $srcdir/$subdir/$test.stp |
| 10 |
|
| 11 |
# PR19525: In bulk-mode (-b), close_relayfs() expects SIGUSR2 to cause EINTR on |
| 12 |
# the relay threads, so it can't be SIG_IGN. But the output is written to |
| 13 |
# files for later stap-merge, so we can't use normal proc stap_run. |
| 14 |
# Just make sure it doesn't hang, at least. |
| 15 |
|
| 16 |
set result_string {} |
| 17 |
stap_run3 "$test bulk" $srcdir/$subdir/$test.stp -g -b -c true |
| 18 |
|