From 0d742a8daf55311f048a6959d6641a9a95a2eb04 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 17 Nov 2021 13:29:50 -0300 Subject: Add the enum group test to the kconfigcompiler_test Making sure that it runs and not segfaults --- autotests/kconfig_compiler/CMakeLists.txt | 2 +- autotests/kconfig_compiler/kconfigcompiler_test.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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", -- cgit v1.2.1