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';