File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/ForkSIGUSR
88# The line below needs the " | env" at the end, in order to make the
99# script continue executing, rather than waiting (forever) for the
1010# 'nohup run...' command to finish.
11- RUN: bash -c "nohup %run %t/ForkSIGUSR -fork=3 -ignore_crashes=1 2>%t/log &" | env
12- RUN: ps aux | grep ForkSIGUSR | grep -v "grep" | awk '{print $2}' | tr -d '\n' > %t2
11+ RUN: bash -c "nohup %run %t/ForkSIGUSR -fork=3 -ignore_crashes=1 2>%t/log & echo -n $! > %t2" | env
1312RUN: sleep 3
1413RUN: kill -SIGUSR2 %{readfile:%t2}
1514RUN: sleep 6
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ RUN: %msan_compiler %S/SleepOneSecondTest.cpp -o %t/LFSIGINT
99# The line below needs the " | env" at the end, in order to make the
1010# script continue executing, rather than waiting (forever) for the
1111# 'nohup run...' command to finish.
12- RUN: bash -c "nohup %run %t/LFSIGINT 2> %t/log &" | env
13- RUN: ps aux | grep LFSIGINT | grep -v "grep" | awk '{print $2}' | tr -d '\n' > %t2
12+ RUN: bash -c "nohup %run %t/LFSIGINT 2> %t/log & echo -n $! > %t2" | env
1413RUN: sleep 2
1514RUN: kill -SIGINT %{readfile:%t2}
1615RUN: sleep 3
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/LFSIGUSR
99# The line below needs the " | env" at the end, in order to make the
1010# script continue executing, rather than waiting (forever) for the
1111# 'nohup run...' command to finish.
12- RUN: bash -c "nohup %run %t/LFSIGUSR 2> %t/log &"| env
13- RUN: ps aux | grep LFSIGUSR | grep -v "grep" | awk '{print $2}' | tr -d '\n' > %t2
12+ RUN: bash -c "nohup %run %t/LFSIGUSR 2> %t/log & echo -n $! > %t2"| env
1413RUN: sleep 2
1514RUN: kill -SIGUSR1 %{readfile:%t2}
1615RUN: sleep 3
You can’t perform that action at this time.
0 commit comments