• R/O
  • SSH

libcpptools: Commit

This library contains code that extends and simplifies different operations
for C++ language based programs


Commit MetaInfo

Revisiona35ebe7444114795c55fe2048c488c1d0a4126c0 (tree)
Time2020-01-10 07:02:20
AuthorSergey Gusarov
CommiterSergey Gusarov

Log Message

Fixed tests with clang

Change Summary

Incremental Difference

diff -r bc940b7c65c7 -r a35ebe744411 .hgsubstate
--- a/.hgsubstate Thu Jan 09 18:16:06 2020 +0300
+++ b/.hgsubstate Fri Jan 10 01:02:20 2020 +0300
@@ -1,3 +1,3 @@
1-e94bf852c66d71683a0862667630d82220bcdb9b libctools
1+0b3a944cef0973f1d378a4b5316cae44963c28af libctools
22 06beda7c7cf3133dc256db280a0feb22b129f49f pyrepo
33 5e7fd50e17b6edf1cadff973d0ec68966cf3265e tests/googletest
diff -r bc940b7c65c7 -r a35ebe744411 tests/src/enums/test_runtime_helper.cpp
--- a/tests/src/enums/test_runtime_helper.cpp Thu Jan 09 18:16:06 2020 +0300
+++ b/tests/src/enums/test_runtime_helper.cpp Fri Jan 10 01:02:20 2020 +0300
@@ -13,6 +13,7 @@
1313 #include <cpptools/enums/runtime_helper.hpp>
1414
1515 #include <ctools/predef/cxx11_attributes.h>
16+#include <ctools/unused.h>
1617
1718
1819 #define TEST_CASE_NAME enums_runtime_helper
@@ -83,4 +84,6 @@
8384 };
8485
8586 TestHelper testHelper;
87+
88+ CT_UNUSED(testHelper);
8689 }
diff -r bc940b7c65c7 -r a35ebe744411 tests/src/threads/test_kill.cpp
--- a/tests/src/threads/test_kill.cpp Thu Jan 09 18:16:06 2020 +0300
+++ b/tests/src/threads/test_kill.cpp Fri Jan 10 01:02:20 2020 +0300
@@ -18,8 +18,10 @@
1818
1919 TEST(TEST_CASE_NAME, compile)
2020 {
21+#if defined (CPT_THREADS_KILL_AVAILABLE)
2122 std::thread thread;
2223
2324 cpptools::threads::kill(thread.native_handle());
2425 cpptools::threads::exceptionlessKill<cpptools::exceptions::Printer>(thread.native_handle());
26+#endif
2527 }
Show on old repository browser