libreSSL/tests/run_fork_rand.sh
Brent Cook 0bc4bdde5f move fork_rand.sh so it does not get run every time
the test takes many minutes to run on an OS with a slow fork() call

ok beck@
2014-07-15 17:22:39 -05:00

12 lines
185 B
Bash
Executable File

#!/usr/bin/env bash
./fork_rand > fork_rand.txt
while read -r a b;
do
if [ "$a" = "$b" ]; then
echo "FAIL: $a = $b"
return 2
else
echo "PASS: $a != $b"
fi
done < fork_rand.txt