profile: Remove syscall_kernel_flock profiling
[Samba.git] / lib / talloc / test_magic_differs.sh
blob1b6ba2e4d4557b2d011150f967c964f433abb541
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.
5 echo "test: magic differs"
7 helper=$1
8 m1=$($helper)
9 m2=$($helper)
11 if [ $m1 -eq $m2 ]; then
12 echo "failure: magic remained the same between executions ($m1 vs $m2)"
13 exit 1
16 echo "success: magic differs"