From 631b88e42c3fb7e10dee390d170854e40c31fac0 Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Sun, 14 Apr 2013 12:29:14 +0200 Subject: Fixed vrml-server and added conditional for gcov --- CMakeLists.txt | 3 +- apps/samples/vrml/vrml-server.scxml | 87 ++++++++++++++++++------------------- contrib/ctest/tests/generic.ctest | 2 +- src/uscxml/Interpreter.cpp | 2 +- 4 files changed, 46 insertions(+), 48 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fea1b5b..62c865d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,6 +149,7 @@ else() OPTION(BUILD_TESTS "Build USCXML tests" ON) OPTION(RUN_W3C_TESTS "Run W3C tests" ON) endif() +OPTION(ENABLE_GCOV "Compile with gcov support" OFF) # a dummy target to depend on the targets needed for tests, see: # http://stackoverflow.com/questions/733475/cmake-ctest-make-test-doesnt-build-tests @@ -185,7 +186,7 @@ if(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") add_definitions(-fPIC) add_definitions(-Wunreachable-code) - if (CMAKE_BUILD_TYPE MATCHES ".*Deb.*") # when not building for debug + if (CMAKE_BUILD_TYPE MATCHES ".*Deb.*" AND ENABLE_GCOV) # when not building for debug # coverage information add_definitions(-fprofile-arcs) add_definitions(-ftest-coverage) diff --git a/apps/samples/vrml/vrml-server.scxml b/apps/samples/vrml/vrml-server.scxml index 6f376e8..8563cb9 100644 --- a/apps/samples/vrml/vrml-server.scxml +++ b/apps/samples/vrml/vrml-server.scxml @@ -283,52 +283,49 @@
- - - - -
- - - - - - - - - - - - - - - - - - - - - - + + + + +
+ + + + + + + + + + + + + + + + + + + + - - - -
- - + + + +
+ diff --git a/contrib/ctest/tests/generic.ctest b/contrib/ctest/tests/generic.ctest index eb2b5fd..51db345 100644 --- a/contrib/ctest/tests/generic.ctest +++ b/contrib/ctest/tests/generic.ctest @@ -1 +1 @@ -set(CTEST_BUILD_OPTIONS "-DRUN_W3C_TESTS:BOOL=ON") +set(CTEST_BUILD_OPTIONS "-DRUN_W3C_TESTS:BOOL=ON -DENABLE_GCOV:BOOL=ON") diff --git a/src/uscxml/Interpreter.cpp b/src/uscxml/Interpreter.cpp index de2b8b5..0f98dc9 100644 --- a/src/uscxml/Interpreter.cpp +++ b/src/uscxml/Interpreter.cpp @@ -1191,7 +1191,7 @@ void InterpreterImpl::executeContent(const Arabica::DOM::Node& cont if (_executableContent.find(content) == _executableContent.end()) { execContent = Factory::createExecutableContent(content.getLocalName(), content.getNamespaceURI(), this); if (!execContent) { - LOG(ERROR) << "No custom executable content known for '" + LOG(ERROR) << "No custom executable content known for element '" << content.getLocalName() << "' in namespace '" << content.getNamespaceURI() << "'"; return; } -- cgit v0.12