aboutsummaryrefslogtreecommitdiff
blob: 0f3381a27b4fbedf12b777743699ba574a59a86b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# vfork and trace wierdness #264478

trace-0 ; test $? -eq 77 && exit 77

# the exact binary we run doesnt matter, it just needs to be
# static so that the trace code works
output=$(vfork-0 sb_true_static sb_true_static sb_true_static 2>&1 || echo fail)
echo "$output"
exec test -z "$output"

exit 1
# Below is original test case
[ -e /usr/bin/fpc ] || exit 77

addwrite $PWD

cat <<"EOF" > Makefile
a := $(shell $(shell /usr/bin/fpc -PB) -iVSPTPSOTO)
all:
EOF

output=$(make -s 2>&1)
echo "$output"
test -z "$output"