mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
input: unit test: check pipe2() return value
Fixes compilation failures with clang, in release mode.
This commit is contained in:
parent
ed7652db50
commit
f0e36e35cb
1 changed files with 1 additions and 1 deletions
2
input.c
2
input.c
|
|
@ -1878,7 +1878,7 @@ keyboard_modifiers(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
|
|||
UNITTEST
|
||||
{
|
||||
int chan[2];
|
||||
pipe2(chan, O_CLOEXEC);
|
||||
xassert(pipe2(chan, O_CLOEXEC) == 0);
|
||||
|
||||
xassert(chan[0] >= 0);
|
||||
xassert(chan[1] >= 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue