diff options
Diffstat (limited to 'tests/socket-test.c')
-rw-r--r-- | tests/socket-test.c | 3 |
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; } |