diff options
| author | jvoisin | 2023-07-09 16:11:24 +0200 |
|---|---|---|
| committer | jvoisin | 2023-07-09 16:11:24 +0200 |
| commit | 33acec595b47ec97ae57a98ec396a26f6d8e309e (patch) | |
| tree | 971717fb9cf43345f513db0849fdbfb2a410c5f9 /tests/test_getcwd.c | |
| parent | 6939c9e0c241bb348c006d07ee423ed5aeb0e707 (diff) | |
Add tests for unistd.h
Diffstat (limited to 'tests/test_getcwd.c')
| -rw-r--r-- | tests/test_getcwd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_getcwd.c b/tests/test_getcwd.c index 14a55fa..61345f7 100644 --- a/tests/test_getcwd.c +++ b/tests/test_getcwd.c | |||
| @@ -1,10 +1,12 @@ | |||
| 1 | #include "common.h" | 1 | #include "common.h" |
| 2 | 2 | ||
| 3 | #include <string.h> | 3 | #include <unistd.h> |
| 4 | 4 | ||
| 5 | int main(int argc, char** argv) { | 5 | int main(int argc, char** argv) { |
| 6 | char buffer[12] = {0}; | 6 | char buffer[12] = {0}; |
| 7 | 7 | ||
| 8 | getcwd(buffer, 10); | ||
| 9 | |||
| 8 | CHK_FAIL_START | 10 | CHK_FAIL_START |
| 9 | getcwd(buffer, 14); | 11 | getcwd(buffer, 14); |
| 10 | CHK_FAIL_END | 12 | CHK_FAIL_END |
