update for copy-pasted tests. meh. needs cleanup.

This commit is contained in:
IRainman 2026-01-21 03:31:04 +03:00
parent a9d84bbcb2
commit 6d6acd4364
2 changed files with 7 additions and 3 deletions

View File

@ -198,7 +198,7 @@ bool tester(uint64_t seed, size_t volume) {
char buffer[4096]; // large buffer (can't overflow)
RandomEngine rand(seed);
for (size_t i = 0; i < volume; i++) {
if ((i % 100000) == 0) {
if ((i % 1000000) == 0) {
std::cout << ".";
std::cout.flush();
}
@ -258,7 +258,10 @@ bool tester(uint64_t seed, size_t volume) {
int main() {
#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || \
defined(sun) || defined(__sun)
std::cout << "Warning: msys/cygwin or solaris detected." << std::endl;
std::cout << "Warning: msys/cygwin or solaris detected. This particular test is likely "
"to generate false failures due to our reliance on the "
"underlying runtime library."
<< std::endl;
return EXIT_SUCCESS;
#else
if (tester(1234344, 100000000)) {

View File

@ -253,7 +253,7 @@ bool tester(uint64_t seed, size_t volume) {
int main() {
#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || \
defined(sun) || defined(__sun)
std::cout << "Warning: msys/cygwin detected. This particular test is likely "
std::cout << "Warning: msys/cygwin or solaris detected. This particular test is likely "
"to generate false failures due to our reliance on the "
"underlying runtime library."
<< std::endl;
@ -263,6 +263,7 @@ int main() {
std::cout << "All tests ok." << std::endl;
return EXIT_SUCCESS;
}
std::cout << "Failure." << std::endl;
return EXIT_FAILURE;
#endif