diff options
| author | Bryce Harrington <bryce@osg.samsung.com> | 2015-12-07 22:49:14 -0800 |
|---|---|---|
| committer | Bryce Harrington <bryce@osg.samsung.com> | 2016-01-13 15:21:05 -0800 |
| commit | 2b236af9b7f21b81df9ded062921da6cc3f37eb9 (patch) | |
| tree | 773acd1e5d474cef51fbcd9f00359a08afaa5062 /tests | |
| parent | socket-test: Fix some comment typos (diff) | |
| download | wayland-2b236af9b7f21b81df9ded062921da6cc3f37eb9.tar wayland-2b236af9b7f21b81df9ded062921da6cc3f37eb9.tar.gz wayland-2b236af9b7f21b81df9ded062921da6cc3f37eb9.tar.bz2 wayland-2b236af9b7f21b81df9ded062921da6cc3f37eb9.tar.lz wayland-2b236af9b7f21b81df9ded062921da6cc3f37eb9.tar.xz wayland-2b236af9b7f21b81df9ded062921da6cc3f37eb9.tar.zst wayland-2b236af9b7f21b81df9ded062921da6cc3f37eb9.zip | |
socket-test: Refactor if check into the assert
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'tests')
| -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; } |
