From 62963c7d5de3d516c16c7edfaae89ed0b7c93a9e Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 10 Nov 2006 16:32:26 +0000 Subject: [PATCH] Fixes for make test if '.' is not in $PATH. --- src/libCom/test/Makefile | 4 ++-- src/libCom/test/epicsUnitTestTest.plt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libCom/test/Makefile b/src/libCom/test/Makefile index 84279a890..2ca5d122e 100644 --- a/src/libCom/test/Makefile +++ b/src/libCom/test/Makefile @@ -151,7 +151,7 @@ fdmgrTest_LIBS += ca include $(TOP)/configure/RULES test: $(TEST_SCRIPTS) - @perl -e 'use Test::Harness; runtests @ARGV;' $(TEST_SCRIPTS) + perl -e 'use Test::Harness; runtests @ARGV;' $(TEST_SCRIPTS) # If there's a perl test script (.plt) available, use it %.t: ../%.plt @@ -162,4 +162,4 @@ test: $(TEST_SCRIPTS) # Generate a 1-line test program to run the real test binary %.t: %$(EXE) @$(RM) $@ - @echo 'exec "$<";' >$@ + @echo 'exec "./$<";' >$@ diff --git a/src/libCom/test/epicsUnitTestTest.plt b/src/libCom/test/epicsUnitTestTest.plt index 9c4d94858..204efbeb7 100644 --- a/src/libCom/test/epicsUnitTestTest.plt +++ b/src/libCom/test/epicsUnitTestTest.plt @@ -2,7 +2,7 @@ use Test::Simple tests => 1; -$prog = $0; +$prog = "./$0"; $prog =~ s/\.t$//; $expected = << 'END';