summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2015-12-07 22:49:14 -0800
committerBryce Harrington <bryce@osg.samsung.com>2016-01-13 15:21:05 -0800
commit2b236af9b7f21b81df9ded062921da6cc3f37eb9 (patch)
tree773acd1e5d474cef51fbcd9f00359a08afaa5062
parent69a5a6d16c3ce97d6032ad61ba3503c8e598d359 (diff)
downloadwayland-2b236af9b7f21b81df9ded062921da6cc3f37eb9.tar.gz
socket-test: Refactor if check into the assert
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
-rw-r--r--tests/socket-test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/socket-test.c b/tests/socket-test.c
index 2e336fd..bb034f4 100644
--- a/tests/socket-test.c
+++ b/tests/socket-test.c
@@ -47,8 +47,7 @@ static const char *
require_xdg_runtime_dir(void)
{
char *val = getenv("XDG_RUNTIME_DIR");
- if (!val)
- assert(0 && "set $XDG_RUNTIME_DIR to run this test");
+ assert(val && "set $XDG_RUNTIME_DIR to run this test");
return val;
}