Skip to content

Commit

Permalink
Add a test for ppoll
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoisin committed Jun 22, 2023
1 parent 28d61f4 commit dad7183
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ TARGETS=test_memcpy_static_write \
test_stpncpy_static_write \
test_getcwd \
test_poll \
test_ppoll \

.SILENT:

Expand Down
15 changes: 15 additions & 0 deletions tests/test_ppoll.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "common.h"

#define _GNU_SOURCE
#include <poll.h>

int main(int argc, char** argv) {
struct pollfd buffer[12] = {0};

CHK_FAIL_START
ppoll(buffer, 14, NULL, NULL);
CHK_FAIL_END

puts(buffer);
return ret;
}

0 comments on commit dad7183

Please sign in to comment.