mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-05 07:15:46 -04:00
socket-test: Refactor if check into the assert
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
parent
69a5a6d16c
commit
2b236af9b7
1 changed files with 1 additions and 2 deletions
|
|
@ -47,8 +47,7 @@ static const char *
|
||||||
require_xdg_runtime_dir(void)
|
require_xdg_runtime_dir(void)
|
||||||
{
|
{
|
||||||
char *val = getenv("XDG_RUNTIME_DIR");
|
char *val = getenv("XDG_RUNTIME_DIR");
|
||||||
if (!val)
|
assert(val && "set $XDG_RUNTIME_DIR to run this test");
|
||||||
assert(0 && "set $XDG_RUNTIME_DIR to run this test");
|
|
||||||
|
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue