talloc: Test that talloc magic differs between processes.
[sfrench/samba-autobuild/.git] / lib / talloc / test_magic_differs.sh
1 #!/bin/sh
2 # This test ensures that two different talloc processes do not use the same
3 # magic value to lessen the opportunity for transferrable attacks.
4
5 echo "test: magic differs"
6
7 if [
8         "`./talloc_test_magic_differs_helper`" != "`./talloc_test_magic_differs_helper`"
9 ]; then
10         echo "failure: magic remained the same between executions"
11         exit 1
12 fi
13
14 echo "success: magic differs"