From 355a2d38b3bc500ccba9fff50c274287e514f837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 30 Jan 2015 07:52:32 +0100 Subject: [PATCH] added missing test/cfg/posix.c file --- test/cfg/posix.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/cfg/posix.c diff --git a/test/cfg/posix.c b/test/cfg/posix.c new file mode 100644 index 000000000..acb965c7a --- /dev/null +++ b/test/cfg/posix.c @@ -0,0 +1,19 @@ + +// Test library configuration for posix.cfg +// +// Usage: +// $ cppcheck --check-library --library=posix --enable=information --error-exitcode=1 --inline-suppr cfg/test/posix.c +// => +// No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0 +// + +#include + +void f(char *p) { + isatty (0); + mkdir (p, 0); + getcwd (0, 0); + // cppcheck-suppress nullPointer + readdir (0); +} +