aboutsummaryrefslogtreecommitdiff
path: root/tests/run_fork_rand.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run_fork_rand.sh')
-rwxr-xr-xtests/run_fork_rand.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/run_fork_rand.sh b/tests/run_fork_rand.sh
new file mode 100755
index 0000000..d1e2685
--- /dev/null
+++ b/tests/run_fork_rand.sh
@@ -0,0 +1,11 @@
1#!/usr/bin/env bash
2./fork_rand > fork_rand.txt
3while read -r a b;
4do
5 if [ "$a" = "$b" ]; then
6 echo "FAIL: $a = $b"
7 return 2
8 else
9 echo "PASS: $a != $b"
10 fi
11done < fork_rand.txt