summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-01-13 02:20:15 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-01-13 02:20:15 (GMT)
commitc443aaa23e079d8ab94942bfefa65b940c1acd01 (patch)
treebeab36f1446339fe1b157c349c0808e4f5106982 /test
parenta116aeb2cf5a84fa03f9814c3884561149029267 (diff)
downloaduscxml-c443aaa23e079d8ab94942bfefa65b940c1acd01.zip
uscxml-c443aaa23e079d8ab94942bfefa65b940c1acd01.tar.gz
uscxml-c443aaa23e079d8ab94942bfefa65b940c1acd01.tar.bz2
Fixed bugs intriduced by PIMPL
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt3
-rw-r--r--test/src/test-arabica-events.cpp5
2 files changed, 6 insertions, 2 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 353faa2..ae6d07f 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -30,7 +30,6 @@ endif()
if (OPENSCENEGRAPH_FOUND)
add_executable(test-osg src/test-osg.cpp)
target_link_libraries(test-osg uscxml)
- add_test(test-osg ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test-prolog-swi)
set_target_properties(test-osg PROPERTIES FOLDER "Tests")
endif()
@@ -51,7 +50,7 @@ set_target_properties(test-completion PROPERTIES FOLDER "Tests")
add_executable(test-arabica-events src/test-arabica-events.cpp)
target_link_libraries(test-arabica-events uscxml)
-add_test(test-arabica-events ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test-arabica-events ${CMAKE_SOURCE_DIR}/test/samples/arabica/test-arabica-events.xml)
+add_test(test-arabica-events ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test-arabica-events ${CMAKE_SOURCE_DIR}/test/samples/uscxml/arabica/test-arabica-events.xml)
set_target_properties(test-arabica-events PROPERTIES FOLDER "Tests")
add_executable(test-url src/test-url.cpp)
diff --git a/test/src/test-arabica-events.cpp b/test/src/test-arabica-events.cpp
index fcf4ea8..13200bb 100644
--- a/test/src/test-arabica-events.cpp
+++ b/test/src/test-arabica-events.cpp
@@ -22,6 +22,11 @@ public:
};
int main(int argc, char** argv) {
+ if (argc != 2) {
+ std::cerr << "Expected path to test-arabica-events.xml" << std::endl;
+ exit(EXIT_FAILURE);
+ }
+
Arabica::SAX::InputSource<std::string> inputSource(argv[1]);
Arabica::SAX2DOM::Parser<std::string> domParser;