We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee8b816 commit dd29d2eCopy full SHA for dd29d2e
src/tests_exhaustive.c
@@ -353,6 +353,14 @@ int main(int argc, char** argv) {
353
unsigned char rand32[32];
354
secp256k1_context *ctx;
355
356
+ /* Disable buffering for stdout to improve reliability of getting
357
+ * diagnostic information. Happens right at the start of main because
358
+ * setbuf must be used before any other operation on the stream. */
359
+ setbuf(stdout, NULL);
360
+ /* Also disable buffering for stderr because it's not guaranteed that it's
361
+ * unbuffered on all systems. */
362
+ setbuf(stderr, NULL);
363
+
364
/* find iteration count */
365
if (argc > 1) {
366
count = strtol(argv[1], NULL, 0);
0 commit comments