0f765f0e032dc9573c6c4ef28272a1009b1067b1
[samba.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"