aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaz Canabrava <tcanabrava@kde.org>2021-11-17 13:29:50 -0300
committerTomaz Canabrava <tcanabrava@kde.org>2021-11-23 14:36:57 +0000
commit0d742a8daf55311f048a6959d6641a9a95a2eb04 (patch)
treed7c5a19ea5fa91ec7855d66530525a51105840e0
parent148ea287a0a7b9de96dc299db56254c65aec3385 (diff)
downloadkconfig-0d742a8daf55311f048a6959d6641a9a95a2eb04.tar.gz
kconfig-0d742a8daf55311f048a6959d6641a9a95a2eb04.tar.bz2
Add the enum group test to the kconfigcompiler_test
Making sure that it runs and not segfaults
-rw-r--r--autotests/kconfig_compiler/CMakeLists.txt2
-rw-r--r--autotests/kconfig_compiler/kconfigcompiler_test.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/autotests/kconfig_compiler/CMakeLists.txt b/autotests/kconfig_compiler/CMakeLists.txt
index 74d09e96..4caa17af 100644
--- a/autotests/kconfig_compiler/CMakeLists.txt
+++ b/autotests/kconfig_compiler/CMakeLists.txt
@@ -309,5 +309,5 @@ target_link_libraries(test_fileextensions KF5::ConfigGui)
## If this to compiles, we are sure that the generation is correct.
set(test_enums_and_properties_SRCS enum_group_main.cpp)
gen_kcfg_test_source(test_enums_and_properties test_enums_and_properties_SRCS GENERATE_MOC)
-add_library(test_enums_and_properties ${test_enums_and_properties_SRCS})
+ecm_add_test(TEST_NAME test_enums_and_properties ${test_enums_and_properties_SRCS})
target_link_libraries(test_enums_and_properties KF5::ConfigGui)
diff --git a/autotests/kconfig_compiler/kconfigcompiler_test.cpp b/autotests/kconfig_compiler/kconfigcompiler_test.cpp
index 090fe01d..61666939 100644
--- a/autotests/kconfig_compiler/kconfigcompiler_test.cpp
+++ b/autotests/kconfig_compiler/kconfigcompiler_test.cpp
@@ -91,6 +91,7 @@ static CompilerTestSet testCasesToRun = {"test1",
"test11",
"test12",
"test13",
+ "test_enums_and_properties",
"test_dpointer",
"test_qdebugcategory",
"test_signal",