diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/bls_c384_test.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/bls_c384_test.cpp b/test/bls_c384_test.cpp index b4a3acb..aa2d85e 100644 --- a/test/bls_c384_test.cpp +++ b/test/bls_c384_test.cpp @@ -72,6 +72,7 @@ void blsOrderTest(const char *curveOrder, const char *fieldOrder) CYBOZU_TEST_EQUAL(buf, fieldOrder); } +#if !(defined(DISABLE_THREAD_TEST) && defined(__GCC_IEC_559)) #if defined(CYBOZU_CPP_VERSION) && CYBOZU_CPP_VERSION >= CYBOZU_CPP_VERSION_CPP11 #include <thread> #include <vector> @@ -90,9 +91,10 @@ struct Thread { t.reset(new std::thread(func, p1, p2)); } }; + CYBOZU_TEST_AUTO(multipleInit) { - const size_t n = 10; + const size_t n = 100; { std::vector<Thread> vt(n); for (size_t i = 0; i < n; i++) { @@ -111,6 +113,7 @@ CYBOZU_TEST_AUTO(multipleInit) #endif } #endif +#endif void blsSerializeTest() { |