summaryrefslogtreecommitdiffstats
path: root/c++/examples/testexamples.sh
diff options
context:
space:
mode:
Diffstat (limited to 'c++/examples/testexamples.sh')
-rwxr-xr-xc++/examples/testexamples.sh6
1 files changed, 3 insertions, 3 deletions
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()