diff options
| author | Jeffrey Walton <noloader@gmail.com> | 2017-05-29 00:43:20 -0400 |
|---|---|---|
| committer | Jeffrey Walton <noloader@gmail.com> | 2017-05-29 00:43:20 -0400 |
| commit | ae3922dda0c4c7d75381f2b74425c34adb762c5f (patch) | |
| tree | e8a2fbe1a245fe38f710b77aa76064c27ee7df4c /validat1.cpp | |
| parent | 0df38c3506efbe8aac5ce7a695c01d487348dcc1 (diff) | |
| download | cryptopp-git-ae3922dda0c4c7d75381f2b74425c34adb762c5f.tar.gz | |
Remove calls to cout.flush() for AppVeyor
They seemed to produce a hang when running self tests in AppVeyor.
Also use IsDebuggerPresent() to determine when we should call DebugBreak(). The OS killed our debug build when fuzzing caused an assert to fail
Diffstat (limited to 'validat1.cpp')
| -rw-r--r-- | validat1.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/validat1.cpp b/validat1.cpp index ee46379c..50d6911d 100644 --- a/validat1.cpp +++ b/validat1.cpp @@ -79,9 +79,10 @@ bool ValidateAll(bool thorough) #if defined(CRYPTOPP_EXTENDED_VALIDATION)
pass=TestMersenne() && pass;
#endif
+#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
pass=TestRDRAND() && pass;
pass=TestRDSEED() && pass;
-
+#endif
#if defined(CRYPTOPP_EXTENDED_VALIDATION)
// http://github.com/weidai11/cryptopp/issues/92
pass=TestSecBlock() && pass;
@@ -714,7 +715,6 @@ bool TestRandomPool() }
#endif
- std::cout.flush();
return pass;
}
@@ -809,7 +809,6 @@ bool TestAutoSeededX917() std::cout << "passed:";
std::cout << " GenerateWord32 and Crop\n";
- std::cout.flush();
return pass;
}
#endif
@@ -920,11 +919,11 @@ bool TestMersenne() std::cout << "passed:";
std::cout << " GenerateWord32 and Crop\n";
- std::cout.flush();
return pass;
}
#endif
+#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
bool TestRDRAND()
{
std::cout << "\nTesting RDRAND generator...\n\n";
@@ -1024,7 +1023,6 @@ bool TestRDRAND() else
std::cout << "RDRAND generator not available, skipping test.\n";
- std::cout.flush();
return pass;
}
@@ -1127,9 +1125,9 @@ bool TestRDSEED() else
std::cout << "RDSEED generator not available, skipping test.\n";
- std::cout.flush();
return pass;
}
+#endif
bool ValidateHashDRBG()
{
|
