[PATCH wayland v2 4/5] socket-test: Refactor if check into the assert
Bryce Harrington
bryce at osg.samsung.com
Mon Nov 23 19:59:22 PST 2015
Signed-off-by: Bryce Harrington <bryce at osg.samsung.com>
---
tests/socket-test.c | 3 +--
1 file changed, 1 insertion(+), 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;
}
--
1.9.1
More information about the wayland-devel
mailing list