diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-08-17 06:35:00 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-08-17 06:35:00 -0400 |
commit | db3ca13185dac5802e56c18f6d181f886ff28abc (patch) | |
tree | 1634b933e52c404779e5f6e5da050986e2690e21 /crawl-ref | |
parent | a44b648ec516a0bbdcf9939186233ef8e811b1d3 (diff) | |
download | crawl-ref-travis.tar.gz crawl-ref-travis.zip |
travis configurationtravis
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/Makefile | 2 | ||||
-rw-r--r-- | crawl-ref/source/util/fake_pty.c | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/crawl-ref/source/Makefile b/crawl-ref/source/Makefile index db39bd95cc..57201aaa47 100644 --- a/crawl-ref/source/Makefile +++ b/crawl-ref/source/Makefile @@ -1712,7 +1712,7 @@ test-%: $(GAME) util/fake_pty builddb @echo "Finished: $*" util/fake_pty: util/fake_pty.c - $(QUIET_HOSTCC)$(if $(HOSTCC),$(HOSTCC),$(CC)) -Wall $< -o $@ -lutil + $(QUIET_HOSTCC)$(if $(HOSTCC),$(HOSTCC),$(CC)) $(if $(TRAVIS),-DTRAVIS,) -Wall $< -o $@ -lutil # Should be not needed, but the race condition in bug #6509 is hard to fix. builddb: $(GAME) diff --git a/crawl-ref/source/util/fake_pty.c b/crawl-ref/source/util/fake_pty.c index 5db9d78cd7..69ed62b450 100644 --- a/crawl-ref/source/util/fake_pty.c +++ b/crawl-ref/source/util/fake_pty.c @@ -30,7 +30,16 @@ static void slurp_output() while (poll(&pfd, 1, 60000) > 0) // 60 seconds with no output -> die die die! { if (read(tty, buf, sizeof(buf)) <= 0) +#ifdef TRAVIS + { + puts("."); +#endif break; +#ifdef TRAVIS + } + else + puts("x"); +#endif } kill(crawl, SIGTERM); // shooting a zombie is ok, let's make sure it's dead |