Skip to content

Commit fb424fb

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

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ matrix:
7777
apt:
7878
packages:
7979
- valgrind
80-
80+
8181
before_install: mkdir -p `dirname $GUAVA_JAR`
8282
install: if [ ! -f $GUAVA_JAR ]; then wget $GUAVA_URL -O $GUAVA_JAR; fi
8383
before_script: ./autogen.sh
@@ -93,4 +93,8 @@ script:
9393
make -j2 &&
9494
travis_wait 30 valgrind --error-exitcode=42 ./tests 16 &&
9595
travis_wait 30 valgrind --error-exitcode=42 ./exhaustive_tests;
96-
fi
96+
fi
97+
98+
after_script:
99+
- cat ./tests.log
100+
- 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)