diff --git a/tests/Makefile b/tests/Makefile index 4fe21f3a1c..dac252e985 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -7,18 +7,33 @@ ifeq ($(IS_REDOX),1) FAILING_TESTS= else FAILING_TESTS=tls \ +# Wrong modified time futimens \ +# Not a FIFO mkfifo \ +# Waitpid had EINTR sigchld \ +# not triggering ERANGE stdlib/ptsname \ +# Hang sys_epoll/epollet \ +# Kernel hit todo! sys_mman/fmap \ +# Hang + sys_socket/unixpeername \ +# Task failed successfully? signals/pthread_kill-child \ +# Got EBADF unistd/isatty \ +# Got EINVAL unistd/link \ -# resource/getrusage +# Signal kept unmasked + sigqueue \ +# Unwrap hit, written as TODO + pthread/customstack +# sys_resource/getrusage # time/times -# netdb/netdb +# netdb/netdb endif @@ -128,7 +143,6 @@ EXPECT_NAMES=\ strings \ sys_socket/recv \ sys_socket/recvfrom \ - sys_socket/unixpeername \ sys_socket/unixrecv \ sys_socket/unixrecvfrom \ sys_socket/unixsocketpair \ @@ -297,7 +311,6 @@ VARIED_NAMES=\ pthread/exit \ pthread/extjoin \ pthread/once \ - pthread/customstack \ pthread/barrier \ pthread/rwlock_trylock \ pthread/rwlock_randtest \ @@ -311,7 +324,6 @@ VARIED_NAMES=\ grp/gr_iter \ waitpid \ waitpid_multiple \ - sigqueue \ $(FAILING_TESTS) # Tests run with `expect` (require a .c file and an .exp file diff --git a/tests/fcntl/open.c b/tests/fcntl/open.c index 18a6042939..2d4721ae54 100644 --- a/tests/fcntl/open.c +++ b/tests/fcntl/open.c @@ -179,6 +179,8 @@ int main(int argc, char* argv[]) { goto clean_opened_file; } +// TODO: There is no special handling to O_PATH at kernel level +#ifndef __redox__ // Writing this buf should fail. const char buf[] = "Valencia peanuts"; if (write(fd, buf, sizeof(buf)) != -1) { @@ -189,6 +191,7 @@ int main(int argc, char* argv[]) { close(fd); goto clean_opened_file; } +#endif // But fstat should succeed with O_PATH struct stat stat = {0}; diff --git a/tests/unistd/fchdir.c b/tests/unistd/fchdir.c index 9279dbb934..d80db6ea25 100644 --- a/tests/unistd/fchdir.c +++ b/tests/unistd/fchdir.c @@ -6,7 +6,7 @@ #include "test_helpers.h" int main(void) { - int fd = open("..", O_DIRECTORY); + int fd = open("/usr", O_DIRECTORY); ERROR_IF(open, fd, == -1); UNEXP_IF(open, fd, < 0);