Skip to content

Commit 572739f

Browse files
committed
Fix issue where travis does not show the ./tests seed by flushing stdout and always show stdout output after travis runs the tests.
1 parent e2625f8 commit 572739f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,6 @@ script:
6868
- if [ -n "$HOST" ]; then export USE_HOST="--host=$HOST"; fi
6969
- if [ "x$HOST" = "xi686-linux-gnu" ]; then export CC="$CC -m32"; fi
7070
- ./configure --enable-experimental=$EXPERIMENTAL --enable-endomorphism=$ENDOMORPHISM --with-field=$FIELD --with-bignum=$BIGNUM --with-scalar=$SCALAR --enable-ecmult-static-precomputation=$STATICPRECOMPUTATION --with-ecmult-gen-precision=$ECMULTGENPRECISION --enable-module-ecdh=$ECDH --enable-module-recovery=$RECOVERY --enable-jni=$JNI $EXTRAFLAGS $USE_HOST && make -j2 $BUILD
71+
after_script:
72+
- cat ./tests.log
73+
- cat ./exhaustive-tests.log

src/tests.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5208,6 +5208,7 @@ int main(int argc, char **argv) {
52085208
}
52095209
secp256k1_rand_seed(seed16);
52105210

5211+
setbuf(stdout, NULL);
52115212
printf("test count = %i\n", count);
52125213
printf("random seed = %02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\n", seed16[0], seed16[1], seed16[2], seed16[3], seed16[4], seed16[5], seed16[6], seed16[7], seed16[8], seed16[9], seed16[10], seed16[11], seed16[12], seed16[13], seed16[14], seed16[15]);
52135214

0 commit comments

Comments
 (0)