I used the current version fbe28d95 from master. Building works fine, but when running the tests, kwsStatementPerLineTest fails. This happens when building with Clang 7.0.1 as well as GCC 8.3.0 on Debian GNU/Linux with CMake 3.13.4. Here is the output:
$ make test
Running tests...
Test project /tmp/KWStyle/build-gcc
Start 1: kwsIndentTest
1/41 Test #1: kwsIndentTest .................... Passed 0.00 sec
Start 2: kwsSemiColonSpaceTest
2/41 Test #2: kwsSemiColonSpaceTest ............ Passed 0.00 sec
Start 3: kwsStatementPerLineTest
3/41 Test #3: kwsStatementPerLineTest ..........***Failed 0.00 sec
Start 4: kwsVariablePerLineTest
4/41 Test #4: kwsVariablePerLineTest ........... Passed 0.00 sec
Start 5: kwsSwitchCaseTest
5/41 Test #5: kwsSwitchCaseTest ................ Passed 0.00 sec
Start 6: kwsBadCharactersTest
6/41 Test #6: kwsBadCharactersTest ............. Passed 0.00 sec
Start 7: TestkwsTabsTest
7/41 Test #7: TestkwsTabsTest .................. Passed 0.00 sec
Start 8: Test0001
8/41 Test #8: Test0001 ......................... Passed 0.00 sec
Start 9: Test4204
9/41 Test #9: Test4204 ......................... Passed 0.01 sec
Start 10: Test4227
10/41 Test #10: Test4227 ......................... Passed 0.01 sec
Start 11: Test4259
11/41 Test #11: Test4259 ......................... Passed 0.01 sec
Start 12: Test4260
12/41 Test #12: Test4260 ......................... Passed 0.01 sec
Start 13: Test4262
13/41 Test #13: Test4262 ......................... Passed 0.01 sec
Start 14: Test4296
14/41 Test #14: Test4296 ......................... Passed 0.01 sec
Start 15: Test4297
15/41 Test #15: Test4297 ......................... Passed 0.01 sec
Start 16: Test4301
16/41 Test #16: Test4301 ......................... Passed 0.01 sec
Start 17: Test4302
17/41 Test #17: Test4302 ......................... Passed 0.01 sec
Start 18: Test4303
18/41 Test #18: Test4303 ......................... Passed 0.01 sec
Start 19: Test4316
19/41 Test #19: Test4316 ......................... Passed 0.01 sec
Start 20: Test4317
20/41 Test #20: Test4317 ......................... Passed 0.01 sec
Start 21: Test4318
21/41 Test #21: Test4318 ......................... Passed 0.01 sec
Start 22: Test4319
22/41 Test #22: Test4319 ......................... Passed 0.01 sec
Start 23: Test4327
23/41 Test #23: Test4327 ......................... Passed 0.01 sec
Start 24: Test4344
24/41 Test #24: Test4344 ......................... Passed 0.01 sec
Start 25: Test4345
25/41 Test #25: Test4345 ......................... Passed 0.01 sec
Start 26: Test4518
26/41 Test #26: Test4518 ......................... Passed 0.01 sec
Start 27: Test4531
27/41 Test #27: Test4531 ......................... Passed 0.01 sec
Start 28: Test4549
28/41 Test #28: Test4549 ......................... Passed 0.01 sec
Start 29: Test5031
29/41 Test #29: Test5031 ......................... Passed 0.01 sec
Start 30: Test5032
30/41 Test #30: Test5032 ......................... Passed 0.01 sec
Start 31: Test5059
31/41 Test #31: Test5059 ......................... Passed 0.07 sec
Start 32: Test5086
32/41 Test #32: Test5086 ......................... Passed 0.00 sec
Start 33: Test9934
33/41 Test #33: Test9934 ......................... Passed 0.00 sec
Start 34: Test9935
34/41 Test #34: Test9935 ......................... Passed 0.00 sec
Start 35: Test9937
35/41 Test #35: Test9937 ......................... Passed 0.00 sec
Start 36: Test9938
36/41 Test #36: Test9938 ......................... Passed 0.00 sec
Start 37: Test9939
37/41 Test #37: Test9939 ......................... Passed 0.00 sec
Start 38: Test10872
38/41 Test #38: Test10872 ........................ Passed 0.00 sec
Start 39: TestkwsIfWhileForUntilTest
39/41 Test #39: TestkwsIfWhileForUntilTest ....... Passed 0.00 sec
Start 40: TestkwsCommaTest
40/41 Test #40: TestkwsCommaTest ................. Passed 0.00 sec
Start 41: TestkwsParenthesisTest
41/41 Test #41: TestkwsParenthesisTest ........... Passed 0.00 sec
98% tests passed, 1 tests failed out of 41
Total Test time (real) = 0.30 sec
The following tests FAILED:
3 - kwsStatementPerLineTest (Failed)
Errors while running CTest
make: *** [Makefile:141: test] Error 8
$ ctest -VV -R kwsStatementPerLineTest
UpdateCTestConfiguration from :/tmp/KWStyle/build-gcc/DartConfiguration.tcl
Parse Config file:/tmp/KWStyle/build-gcc/DartConfiguration.tcl
UpdateCTestConfiguration from :/tmp/KWStyle/build-gcc/DartConfiguration.tcl
Parse Config file:/tmp/KWStyle/build-gcc/DartConfiguration.tcl
Test project /tmp/KWStyle/build-gcc
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 3
Start 3: kwsStatementPerLineTest
3: Test command: /tmp/KWStyle/build-gcc/bin/KWStyleTests "kwsStatementPerLineTest"
3: Test timeout computed to be: 1500
3: Test for bad syntax: Number of statements per line exceed: 2 (max=1)
3: [PASSED]
3: Test for good syntax: Number of statements per line exceed: 2 (max=1)
3: [FAILED]
1/1 Test #3: kwsStatementPerLineTest ..........***Failed 0.00 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.00 sec
The following tests FAILED:
3 - kwsStatementPerLineTest (Failed)
Errors while running CTest
I used the current version fbe28d95 from master. Building works fine, but when running the tests, kwsStatementPerLineTest fails. This happens when building with Clang 7.0.1 as well as GCC 8.3.0 on Debian GNU/Linux with CMake 3.13.4. Here is the output: