File tree Expand file tree Collapse file tree 5 files changed +20
-11
lines changed Expand file tree Collapse file tree 5 files changed +20
-11
lines changed Original file line number Diff line number Diff line change 11# Check that libFuzzer honors SIGUSR1/SIGUSR2
22# Disabled on Windows which does not have SIGUSR1/SIGUSR2.
3- REQUIRES: shell
43UNSUPPORTED: darwin, target={{.*windows.*}}, target=aarch64{{.*}}
54RUN: rm -rf %t
65RUN: mkdir -p %t
76RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/ForkSIGUSR
87
9- RUN: %run %t/ForkSIGUSR -fork=3 -ignore_crashes=1 2>%t/log & export PID=$!
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.
11+ RUN: bash -c "nohup %run %t/ForkSIGUSR -fork=3 -ignore_crashes=1 2>%t/log & echo -n $! > %t2" | env
1012RUN: sleep 3
11- RUN: kill -SIGUSR2 $PID
13+ RUN: kill -SIGUSR2 %{readfile:%t2}
1214RUN: sleep 6
1315RUN: cat %t/log | FileCheck %s --dump-input=fail
1416
Original file line number Diff line number Diff line change 1- REQUIRES: shell, msan
1+ REQUIRES: msan
22UNSUPPORTED: target=arm{{.*}}
33
44# Check that libFuzzer exits gracefully under SIGINT with MSan.
55RUN: rm -rf %t
66RUN: mkdir -p %t
77RUN: %msan_compiler %S/SleepOneSecondTest.cpp -o %t/LFSIGINT
88
9- RUN: %run %t/LFSIGINT 2> %t/log & export PID=$!
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.
12+ RUN: bash -c "nohup %run %t/LFSIGINT 2> %t/log & echo -n $! > %t2" | env
1013RUN: sleep 2
11- RUN: kill -SIGINT $PID
14+ RUN: kill -SIGINT %{readfile:%t2}
1215RUN: sleep 3
1316RUN: cat %t/log | FileCheck %s
1417
Original file line number Diff line number Diff line change 11# FIXME: Disabled on Windows for now because of reliance on posix only features
22# (eg: export, "&", pkill).
3- REQUIRES: shell
43UNSUPPORTED: darwin, target={{.*windows.*}}
54# Check that libFuzzer honors SIGUSR1/SIGUSR2
65RUN: rm -rf %t
76RUN: mkdir -p %t
87RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/LFSIGUSR
98
10- RUN: %run %t/LFSIGUSR 2> %t/log & export PID=$!
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.
12+ RUN: bash -c "nohup %run %t/LFSIGUSR 2> %t/log & echo -n $! > %t2"| env
1113RUN: sleep 2
12- RUN: kill -SIGUSR1 $PID
14+ RUN: kill -SIGUSR1 %{readfile:%t2}
1315RUN: sleep 3
1416RUN: cat %t/log | FileCheck %s
1517
Original file line number Diff line number Diff line change 33// mapping the heap early, in __msan_init.
44//
55// RUN: %clangxx_msan -O0 %s -o %t_1
6- // RUN: %clangxx_msan -O0 -DHEAP_ADDRESS=$(%run %t_1) %s -o %t_2 && %run %t_2
6+ // RUN: %run %t_1 > %t_3
7+ // RUN: %clangxx_msan -O0 -DHEAP_ADDRESS=%{readfile:%t_3} %s -o %t_2 && %run %t_2
78//
89// This test only makes sense for the 64-bit allocator. The 32-bit allocator
910// does not have a fixed mapping. Exclude platforms that use the 32-bit
Original file line number Diff line number Diff line change 22// / Test that a module constructor can not map memory over the NSan heap
33// / (without MAP_FIXED, of course).
44// RUN: %clangxx_nsan -O0 %s -o %t_1
5- // RUN: %clangxx_nsan -O0 -DHEAP_ADDRESS=$(%run %t_1) %s -o %t_2 && %run %t_2
5+ // RUN: %run %t_1 > %t_3
6+ // RUN: %clangxx_nsan -O0 -DHEAP_ADDRESS=%{readfile:%t_3} %s -o %t_2 && %run %t_2
67
78#include < assert.h>
89#include < stdio.h>
You can’t perform that action at this time.
0 commit comments