Blame test_magic_differs.sh

rpm-build 95f51c
#!/bin/sh
rpm-build 95f51c
# This test ensures that two different talloc processes do not use the same
rpm-build 95f51c
# magic value to lessen the opportunity for transferrable attacks.
rpm-build 95f51c
rpm-build 95f51c
echo "test: magic differs"
rpm-build 95f51c
rpm-build 95f51c
helper=$1
rpm-build 95f51c
m1=$($helper)
rpm-build 95f51c
m2=$($helper)
rpm-build 95f51c
rpm-build 95f51c
if [ $m1 -eq $m2 ]; then
rpm-build 95f51c
	echo "failure: magic remained the same between executions ($m1 vs $m2)"
rpm-build 95f51c
	exit 1
rpm-build 95f51c
fi
rpm-build 95f51c
rpm-build 95f51c
echo "success: magic differs"