Commit 2b236af9 authored by Bryce Harrington's avatar Bryce Harrington
Browse files

socket-test: Refactor if check into the assert

Signed-off-by: default avatarBryce Harrington <>
parent 69a5a6d1
......@@ -47,8 +47,7 @@ static const char *
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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment