Fixed generation of log_sink file 33/33433/2
authorMateusz Malicki <m.malicki2@samsung.com>
Fri, 9 Jan 2015 11:34:12 +0000 (12:34 +0100)
committerMateusz Malicki <m.malicki2@samsung.com>
Fri, 9 Jan 2015 14:30:21 +0000 (15:30 +0100)
[Bug]i          log_sink file is invalid formated xml
[Cause]         Lxc invoke exit(0) after fork. Exit from child and
                from parent cause redundant log write
[Solution]      Add defintion to CMakeLists.txt
[Verification]  Build, install, build run test with '--log_sink=/tmp/log.xml',
                run 'xmllint --huge --format /tmp/log.xml' (there should
                be no parse errors).
                Note: StartHasStoppedTest can fail.

Change-Id: I9a1d4bee9030eb8e3958ff914ef7cf2dc1a953ce

CMakeLists.txt

index a12367f..06a1064 100644 (file)
@@ -73,6 +73,7 @@ ADD_DEFINITIONS("-pedantic") # Be pedantic
 ADD_DEFINITIONS("-pedantic-errors") # Make pedantic warnings into errors
 ADD_DEFINITIONS(-DPROGRAM_VERSION="${VERSION}")
 ADD_DEFINITIONS(-DPROJECT_SOURCE_DIR="${PROJECT_SOURCE_DIR}")
+ADD_DEFINITIONS(-DUSE_EXEC)
 
 IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
     # Warn about documentation problems