Skip to content

Commit a383410

Browse files
committed
Add comment re ' | env'; remove extra 'x' from 'ps' options.
1 parent ae56b57 commit a383410

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

compiler-rt/test/fuzzer/fork-sigusr.test

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ RUN: rm -rf %t
55
RUN: mkdir -p %t
66
RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/ForkSIGUSR
77

8+
# The line below needs the " | env" at the end, in order to make the
9+
# script continue executing, rather than waiting (forever) for the
10+
# 'nohup run...' command to finish.
811
RUN: bash -c "nohup %run %t/ForkSIGUSR -fork=3 -ignore_crashes=1 2>%t/log &" | env
9-
RUN: ps auxx | grep ForkSIGUSR | grep -v "grep" | awk '{print $2}' | tr -d '\n' > %t2
12+
RUN: ps aux | grep ForkSIGUSR | grep -v "grep" | awk '{print $2}' | tr -d '\n' > %t2
1013
RUN: sleep 3
1114
RUN: kill -SIGUSR2 %{readfile:%t2}
1215
RUN: sleep 6

compiler-rt/test/fuzzer/sigint.test

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ RUN: rm -rf %t
66
RUN: mkdir -p %t
77
RUN: %msan_compiler %S/SleepOneSecondTest.cpp -o %t/LFSIGINT
88

9+
# The line below needs the " | env" at the end, in order to make the
10+
# script continue executing, rather than waiting (forever) for the
11+
# 'nohup run...' command to finish.
912
RUN: bash -c "nohup %run %t/LFSIGINT 2> %t/log &" | env
10-
RUN: ps auxx | grep LFSIGINT | grep -v "grep" | awk '{print $2}' | tr -d '\n' > %t2
13+
RUN: ps aux | grep LFSIGINT | grep -v "grep" | awk '{print $2}' | tr -d '\n' > %t2
1114
RUN: sleep 2
1215
RUN: kill -SIGINT %{readfile:%t2}
1316
RUN: sleep 3

compiler-rt/test/fuzzer/sigusr.test

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ RUN: rm -rf %t
66
RUN: mkdir -p %t
77
RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/LFSIGUSR
88

9+
# The line below needs the " | env" at the end, in order to make the
10+
# script continue executing, rather than waiting (forever) for the
11+
# 'nohup run...' command to finish.
912
RUN: bash -c "nohup %run %t/LFSIGUSR 2> %t/log &"| env
10-
RUN: ps auxx | grep LFSIGUSR | grep -v "grep" | awk '{print $2}' | tr -d '\n' > %t2
13+
RUN: ps aux | grep LFSIGUSR | grep -v "grep" | awk '{print $2}' | tr -d '\n' > %t2
1114
RUN: sleep 2
1215
RUN: kill -SIGUSR1 %{readfile:%t2}
1316
RUN: sleep 3

0 commit comments

Comments
 (0)