summaryrefslogtreecommitdiffstats
path: root/test/testerror.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'test/testerror.sh.in')
-rw-r--r--test/testerror.sh.in7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/testerror.sh.in b/test/testerror.sh.in
index 440be4f..b68fa7e 100644
--- a/test/testerror.sh.in
+++ b/test/testerror.sh.in
@@ -15,6 +15,8 @@
#
# Tests for test_error and err_compat
+srcdir=@srcdir@
+
# Determine backward compatibility options eneabled
DEPRECATED_SYMBOLS="@DEPRECATED_SYMBOLS@"
@@ -24,11 +26,6 @@ DIFF='diff -c'
nerrors=0
verbose=yes
-# The build (current) directory might be different than the source directory.
-if test -z "$srcdir"; then
- srcdir=.
-fi
-
test -d ./testfiles || mkdir ./testfiles
# Print a line-line message left justified in a field of 70 characters