]> granicus.if.org Git - check/commitdiff
tests: expect location of file based on srcdir
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Fri, 28 Nov 2014 15:35:33 +0000 (15:35 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Fri, 28 Nov 2014 15:35:33 +0000 (15:35 +0000)
Otherwise, when the test is run out of the source tree
the test will fail.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1196 64e312b2-a51f-0410-8e61-82d0ca0eb02a

tests/test_check_nofork_teardown.sh

index cad92f7f9a3217e2bae15aa2c48fac93dc57c9cb..9bdc11629fa71877941b73f3e6fdf4798b1c916c 100755 (executable)
@@ -4,7 +4,7 @@
 
 expected="Running suite(s): bug-99
 0%: Checks: 1, Failures: 1, Errors: 0
-check_nofork_teardown.c:34:F:tc:will_fail:0: Assertion '0' failed"
+${SRCDIR}check_nofork_teardown.c:34:F:tc:will_fail:0: Assertion '0' failed"
 
 actual=`./check_nofork_teardown${EXEEXT} | tr -d "\r"`
 if [ x"${expected}" = x"${actual}" ]; then