From 33acec595b47ec97ae57a98ec396a26f6d8e309e Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 9 Jul 2023 16:11:24 +0200 Subject: Add tests for unistd.h --- tests/test_read.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/test_read.c (limited to 'tests/test_read.c') diff --git a/tests/test_read.c b/tests/test_read.c new file mode 100644 index 0000000..97b4535 --- /dev/null +++ b/tests/test_read.c @@ -0,0 +1,15 @@ +#include "common.h" + +#include + +int main(int argc, char** argv) { + char buffer[12] = {0}; + + + CHK_FAIL_START + read(0, buffer, 14); + CHK_FAIL_END + + puts(buffer); + return ret; +} -- cgit v1.3