input: unit test: check pipe2() return value

Fixes compilation failures with clang, in release mode.
This commit is contained in:
Daniel Eklöf 2025-08-30 08:18:31 +02:00
parent ed7652db50
commit f0e36e35cb
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1878,7 +1878,7 @@ keyboard_modifiers(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
UNITTEST UNITTEST
{ {
int chan[2]; int chan[2];
pipe2(chan, O_CLOEXEC); xassert(pipe2(chan, O_CLOEXEC) == 0);
xassert(chan[0] >= 0); xassert(chan[0] >= 0);
xassert(chan[1] >= 0); xassert(chan[1] >= 0);