forked from HowardHinnant/date
Updated testing so that failures of the should fail tests will compile
but will return 1 in testing if they actually built
This commit is contained in:
11
test_fail.sh
11
test_fail.sh
@@ -1,7 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -e $@ ]]; then
|
||||
exit 1;
|
||||
fi
|
||||
exit 0;
|
||||
echo $1
|
||||
eval $1
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
exit 0;
|
||||
fi
|
||||
exit 1;
|
||||
|
||||
|
Reference in New Issue
Block a user