Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
7a8de1fe
Commit
7a8de1fe
authored
May 29, 2011
by
Pieter Noordhuis
Browse files
Exit with a non-zero status when tests failed
parent
1c29aafd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
7a8de1fe
...
@@ -113,7 +113,8 @@ check: hiredis-test
...
@@ -113,7 +113,8 @@ check: hiredis-test
"bind 127.0.0.1
\n
"
\
"bind 127.0.0.1
\n
"
\
"unixsocket /tmp/hiredis-test-redis.sock"
\
"unixsocket /tmp/hiredis-test-redis.sock"
\
| redis-server -
| 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
`
kill
`
cat
/tmp/hiredis-test-redis.pid
`
.c.o
:
.c.o
:
...
...
test.c
View file @
7a8de1fe
...
@@ -704,10 +704,11 @@ int main(int argc, char **argv) {
...
@@ -704,10 +704,11 @@ int main(int argc, char **argv) {
test_blocking_io_errors
(
cfg
);
test_blocking_io_errors
(
cfg
);
test_throughput
(
cfg
);
test_throughput
(
cfg
);
if
(
fails
==
0
)
{
if
(
fails
)
{
printf
(
"ALL TESTS PASSED
\n
"
);
}
else
{
printf
(
"*** %d TESTS FAILED ***
\n
"
,
fails
);
printf
(
"*** %d TESTS FAILED ***
\n
"
,
fails
);
return
1
;
}
}
printf
(
"ALL TESTS PASSED
\n
"
);
return
0
;
return
0
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment