diff --git a/testCa/Makefile b/testCa/Makefile index c2700f0..4300613 100644 --- a/testCa/Makefile +++ b/testCa/Makefile @@ -15,6 +15,8 @@ testHarness_SRCS += testCaProvider.cpp TESTS += testCaProvider testHarness_SRCS += pvCaAllTests.c +# testCaProvider needs EPICS_HOST_ARCH set in the environment +export EPICS_HOST_ARCH # Name the application caTestHarness caTestHarness_SRCS = $(testHarness_SRCS) diff --git a/testCa/testCaProvider.cpp b/testCa/testCaProvider.cpp index f8aa96a..4f623aa 100644 --- a/testCa/testCaProvider.cpp +++ b/testCa/testCaProvider.cpp @@ -11,7 +11,7 @@ #include #include -#include +#include #include @@ -25,17 +25,6 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include using namespace epics::pvData; using namespace epics::pvAccess; @@ -800,8 +789,7 @@ MAIN(testCaProvider) client->put("1"); client->stopEvents(); }catch(std::exception& e){ - PRINT_EXCEPTION(e); - testAbort("Unexpected Exception: %s", e.what()); + testFail("caught un-expected exception: %s", e.what()); } return testDone();; }