[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdelibs/frameworks] tier2/kconfig/autotests: Fix kconfigguitest, was crashing in QApplication code
From:       David Faure <faure () kde ! org>
Date:       2012-05-14 15:19:06
Message-ID: 20120514151906.17F13A60A9 () git ! kde ! org
[Download RAW message or body]

Git commit ba899166a552ed8f51d73d3930e006c33b3e506a by David Faure.
Committed on 14/05/2012 at 17:19.
Pushed by dfaure into branch 'frameworks'.

Fix kconfigguitest, was crashing in QApplication code

... because QTEST_MAIN creates a QCoreApplication unless QT_GUI_LIB is set.

M  +2    -1    tier2/kconfig/autotests/CMakeLists.txt

http://commits.kde.org/kdelibs/ba899166a552ed8f51d73d3930e006c33b3e506a

diff --git a/tier2/kconfig/autotests/CMakeLists.txt b/tier2/kconfig/autotes=
ts/CMakeLists.txt
index 619196e..dd170ff 100644
--- a/tier2/kconfig/autotests/CMakeLists.txt
+++ b/tier2/kconfig/autotests/CMakeLists.txt
@@ -20,7 +20,8 @@ endmacro()
 =

 macro(KCONFIGGUI_UNIT_TESTS)
    foreach(_testname ${ARGN})
-      add_executable(${_testname} ${_testname}.cpp) # TODO NOGUI
+      add_executable(${_testname} ${_testname}.cpp)
+      set_target_properties(${_testname} PROPERTIES COMPILE_DEFINITIONS "Q=
T_GUI_LIB")
       add_test(kconfiggui-${_testname} ${_testname})
       target_link_libraries(${_testname} kconfigcore kconfiggui ${QT_QTTES=
T_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${inqt5_LIBRARY})
    endforeach()
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic