aboutsummaryrefslogtreecommitdiff
path: root/tests/fork_rand.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fork_rand.sh')
-rwxr-xr-xtests/fork_rand.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/fork_rand.sh b/tests/fork_rand.sh
new file mode 100755
index 0000000..333516e
--- /dev/null
+++ b/tests/fork_rand.sh
@@ -0,0 +1,10 @@
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 else
8 echo "PASS: $a != $b"
9 fi
10done < fork_rand.txt