You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/10/23 16:57:07 UTC

[commons-rng] 03/09: Added patch for PractRand v0.93 to flush stdout after each incremental result.

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git

commit 7fa3ded5dae92cf8579b343c4bb1ee82026fadfb
Author: aherbert <ah...@apache.org>
AuthorDate: Wed Oct 23 12:05:36 2019 +0100

    Added patch for PractRand v0.93 to flush stdout after each incremental result.
---
 .../src/main/resources/patches/RNG_test_0.93.patch             | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/commons-rng-examples/examples-stress/src/main/resources/patches/RNG_test_0.93.patch b/commons-rng-examples/examples-stress/src/main/resources/patches/RNG_test_0.93.patch
new file mode 100644
index 0000000..a71705c
--- /dev/null
+++ b/commons-rng-examples/examples-stress/src/main/resources/patches/RNG_test_0.93.patch
@@ -0,0 +1,10 @@
+--- tools/RNG_test.cpp	2019-10-23 12:01:43.168306859 +0100
++++ tools/RNG_test.new.cpp	2019-10-23 12:02:32.696759305 +0100
+@@ -500,6 +500,7 @@
+ 	else
+ 		std::printf("  ...and %d test result(s) without anomalies\n", int(results.size() - marked.size()));
+ 	std::printf("\n");
++	std::fflush(stdout);
+ 	if (end_on_failure && biggest_decimal_suspicion > 8.5) std::exit(0);
+ }
+ double interpret_length(const std::string &lengthstr, bool normal_mode) {