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

socket-test: Refactor if check into the assert

Signed-off-by: default avatarBryce Harrington <bryce@osg.samsung.com>
parent 69a5a6d1
......@@ -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;
}
......
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