diff options
author | Aleix Pol <aleixpol@kde.org> | 2016-10-28 12:46:17 +0200 |
---|---|---|
committer | Aleix Pol <aleixpol@kde.org> | 2016-10-31 00:27:42 +0100 |
commit | 91dbd2f5a30caf878f668e60b7c2ee5ca376b858 (patch) | |
tree | afa04717dfac5eb68e7c929631898e6216e63fda /autotests/kconfig_compiler/test_qdebugcategory.kcfgc | |
parent | 3a7b8ae9c9b151c20e7b1f9d7f01aa2013a9b25f (diff) | |
download | kconfig-91dbd2f5a30caf878f668e60b7c2ee5ca376b858.tar.gz kconfig-91dbd2f5a30caf878f668e60b7c2ee5ca376b858.tar.bz2 |
Make kconfig_compiler autotests use the KCONFIG_ADD_KCFG_FILES
Summary:
Instead of having an odd fake of it. Will help some required
refactorings and already showed some issues, fixed by this patch,
namely:
- don't use string(regex replace) to extract a string from another
string. in case it doesn't match it will offer the whole content which
is never what we want.
- messages(ERROR), the correct parameter is FATAL_ERROR, cmake
understands "ERROR" as mere output string
- turn the macro into a function, otherwise 2 calls in the same
subdirectory are dangerous.
CCBUG: 371562
Test Plan: tests still pass, projects that use the macro still build
Reviewers: #frameworks, dfaure
Reviewed By: dfaure
Subscribers: dfaure
Differential Revision: https://phabricator.kde.org/D3178
Diffstat (limited to 'autotests/kconfig_compiler/test_qdebugcategory.kcfgc')
-rw-r--r-- | autotests/kconfig_compiler/test_qdebugcategory.kcfgc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autotests/kconfig_compiler/test_qdebugcategory.kcfgc b/autotests/kconfig_compiler/test_qdebugcategory.kcfgc index a7ae26e7..032d032e 100644 --- a/autotests/kconfig_compiler/test_qdebugcategory.kcfgc +++ b/autotests/kconfig_compiler/test_qdebugcategory.kcfgc @@ -1,5 +1,5 @@ # Code generation options for kconfig_compiler_kf5 -File=test_qdebugcategory.kcfgc +File=test_qdebugcategory.kcfg ClassName=TestQCategory Singleton=false Mutators=true |