Disable failed tests

This commit is contained in:
Wildan M
2026-03-17 07:09:54 +07:00
parent 2d607b2fc8
commit 96a09e6dc4
3 changed files with 21 additions and 6 deletions
+17 -5
View File
@@ -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
+3
View File
@@ -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};
+1 -1
View File
@@ -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);