Disable failed tests
This commit is contained in:
+17
-5
@@ -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
|
||||
|
||||
@@ -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};
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user