diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 14:42:29 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 14:42:29 +0100 |
| commit | 7cd3b7caee10d62f7be674afb86a136bf30485d6 (patch) | |
| tree | 121a8c79114174b765713387187d930b102f760f /tests/headers/cpio.c | |
| parent | 3b3325f761b09ebbfef04c44eed546cc4fdeb329 (diff) | |
Add mqueue rt api, add header tests
Diffstat (limited to 'tests/headers/cpio.c')
| -rw-r--r-- | tests/headers/cpio.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/headers/cpio.c b/tests/headers/cpio.c new file mode 100644 index 00000000..da30327f --- /dev/null +++ b/tests/headers/cpio.c @@ -0,0 +1,38 @@ +// https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/cpio.h.html + +#include "core.h" + +#include <cpio.h> + +#ifndef MAGIC +#error MAGIC +#endif + +TEST(cpio_h) +{ + MACRO_VALUE(C_IRUSR, 0400); + MACRO_VALUE(C_IWUSR, 0200); + MACRO_VALUE(C_IXUSR, 0100); + + MACRO_VALUE(C_IRGRP, 040); + MACRO_VALUE(C_IWGRP, 020); + MACRO_VALUE(C_IXGRP, 010); + + MACRO_VALUE(C_IROTH, 04); + MACRO_VALUE(C_IWOTH, 02); + MACRO_VALUE(C_IXOTH, 01); + + MACRO_VALUE(C_ISUID, 04000); + MACRO_VALUE(C_ISGID, 02000); + MACRO_VALUE(C_ISVTX, 01000); + + MACRO_VALUE(C_ISDIR, 040000); + MACRO_VALUE(C_ISFIFO, 010000); + MACRO_VALUE(C_ISREG, 0100000); + MACRO_VALUE(C_ISBLK, 060000); + MACRO_VALUE(C_ISCHR, 020000); + + MACRO_VALUE(C_ISCTG, 0110000); + MACRO_VALUE(C_ISLNK, 0120000); + MACRO_VALUE(C_ISSOCK, 0140000); +} |
