diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-05-29 10:03:39 -0700 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-05-29 10:03:39 -0700 |
commit | 7a8de1fe25dda6187d68ec6570a831394cb127d1 (patch) | |
tree | 32546bffb69b6069af7ed3547fa6c058bb8d9ade /Makefile | |
parent | 1c29aafd4701b92cd743a1635af640f1f3330689 (diff) |
Exit with a non-zero status when tests failed
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -113,7 +113,8 @@ check: hiredis-test "bind 127.0.0.1\n" \ "unixsocket /tmp/hiredis-test-redis.sock" \ | redis-server - - ./hiredis-test -h 127.0.0.1 -p 56379 -s /tmp/hiredis-test-redis.sock || true + ./hiredis-test -h 127.0.0.1 -p 56379 -s /tmp/hiredis-test-redis.sock || \ + ( kill `cat /tmp/hiredis-test-redis.pid` && false ) kill `cat /tmp/hiredis-test-redis.pid` .c.o: |