From dc08de60a62bfeecd3f35553f8bfc353053b0986 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 8 Dec 2000 13:28:02 -0500 Subject: [svn-r3100] Purpose: Fix Description: When not building in the same directory, we needed to tell the checker wherre to look for files. Solution: Put $(srcdir) before things which needed it. Platforms tested: Linux --- c++/examples/Makefile.in | 2 +- c++/examples/testexamples.sh | 6 +++--- 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() -- cgit v0.12