diff options
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 |
