qa: add setsid test to newlib
This commit is contained in:
15
qa/lib/newlib/050-setsid.runner
Executable file
15
qa/lib/newlib/050-setsid.runner
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/cmd/rc
|
||||
runner=$0
|
||||
test = `{echo $runner|sed 's/.runner//'}
|
||||
test_output = /tmp/output-`{basename $test}
|
||||
|
||||
if ( test -e $test_output) rm $test_output
|
||||
|
||||
$test $test_output > /dev/null
|
||||
if ( cat $test_output | grep 'FAIL' > /dev/null ) {
|
||||
cat $test_output
|
||||
echo FAIL
|
||||
exit FAIL
|
||||
}
|
||||
echo PASS
|
||||
exit PASS
|
Reference in New Issue
Block a user