Skip to content

Commit 8de4392

Browse files
committed
Make travis show the ./tests seed by removing stdout buffering and always cat tests.log after a travis run.
1 parent e2625f8 commit 8de4392

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5169,6 +5169,12 @@ void run_ecdsa_openssl(void) {
51695169
int main(int argc, char **argv) {
51705170
unsigned char seed16[16] = {0};
51715171
unsigned char run32[32] = {0};
5172+
5173+
/* Disable buffering for stdout to improve reliability of getting
5174+
* diagnostic information. Happens right at the start of main because
5175+
* setbuf must be used before any other operation on the stream. */
5176+
setbuf(stdout, NULL);
5177+
51725178
/* find iteration count */
51735179
if (argc > 1) {
51745180
count = strtol(argv[1], NULL, 0);

0 commit comments

Comments
 (0)