summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c++/examples/Makefile.in2
-rwxr-xr-xc++/examples/testexamples.sh6
2 files changed, 4 insertions, 4 deletions
diff --git a/c++/examples/Makefile.in b/c++/examples/Makefile.in
index 2a928b6..2ba0672 100644
--- a/c++/examples/Makefile.in
+++ b/c++/examples/Makefile.in
@@ -29,7 +29,7 @@ TEST_OBJ=$(TEST_SRC:.cpp=.lo)
## `make check' will run. List them in the order they should be run.
PROGS=$(TEST_SRC:.cpp=)
-TEST_SCRIPTS=testexamples.sh
+TEST_SCRIPTS=$(srcdir)/testexamples.sh
## These are the files that `make clean' (and derivatives) will remove from
## this directory.
diff --git a/c++/examples/testexamples.sh b/c++/examples/testexamples.sh
index 54141c0..c68d956 100755
--- a/c++/examples/testexamples.sh
+++ b/c++/examples/testexamples.sh
@@ -6,14 +6,14 @@ DIFF='diff -c'
nerrors=0
verbose=yes
-actual=sample.out
-expect=expected.out
-
# The build (current) directory might be different than the source directory.
if test -z "$srcdir"; then
srcdir=.
fi
+actual=sample.out
+expect=$srcdir/expected.out
+
# Print a line-line message left justified in a field of 70 characters
# beginning with the word "Testing".
TESTING()