Skip to content

Commit da60696

Browse files
committed
[re-enable hacked-out tests]
1 parent 6d18b44 commit da60696

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

ci/run.sh

-2
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ test_dmd() {
127127
# FIXME: disable some failing tests on Alpine:
128128
# * no TLS variables support with gdb: https://gitlab.alpinelinux.org/alpine/aports/-/issues/11154
129129
rm compiler/test/runnable/gdb4181.d
130-
# * some failure wrt. exception stack traces
131-
rm compiler/test/runnable/{test19086.d,test17559.d}
132130
fi
133131

134132
$build_path/dmd -g -i -Icompiler/test -release compiler/test/run.d -ofgenerated/run

druntime/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ HAS_ADDITIONAL_TESTS:=$(shell test -d test && echo 1)
427427
ifeq ($(HAS_ADDITIONAL_TESTS),1)
428428
ADDITIONAL_TESTS:=test/init_fini test/exceptions test/coverage test/profile test/cycles test/allocations test/typeinfo \
429429
test/aa test/cpuid test/gc test/hash test/lifetime test/shared \
430-
test/thread test/unittest test/imports test/betterc test/stdcpp test/config test/traits #test/importc_compare
430+
test/thread test/unittest test/imports test/betterc test/stdcpp test/config test/traits test/importc_compare
431431
ifeq (windows,$(OS))
432432
ADDITIONAL_TESTS+=test/uuid
433433
else

druntime/test/exceptions/Makefile

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1+
ifeq ($(OS),linux)
2+
# Alpine Linux comes with an apk tool
3+
ifeq (1,$(shell which apk &>/dev/null && echo 1))
4+
IS_MUSL:=1
5+
endif
6+
endif
7+
18
TESTS=stderr_msg unittest_assert invalid_memory_operation static_dtor \
29
future_message refcounted rt_trap_exceptions_drt catch_in_finally \
310
message_with_null
411

12+
# FIXME: segfaults with musl libc
13+
ifneq ($(IS_MUSL),1)
14+
TESTS += unknown_gc
15+
endif
16+
517
# fails on 32 bit linux
618
ifneq ($(OS),linux)
719
TESTS += assert_fail
@@ -12,9 +24,9 @@ SED:=sed
1224
GDB:=gdb
1325

1426
ifeq ($(OS),linux)
15-
#TESTS+=line_trace line_trace_21656 long_backtrace_trunc rt_trap_exceptions cpp_demangle
16-
# registerMemoryAssertHandler requires glibc; disable the tests on Alpine (apk tool available)
17-
ifneq (1,$(shell which apk > /dev/null 2>&1 && echo 1))
27+
TESTS+=line_trace line_trace_21656 long_backtrace_trunc rt_trap_exceptions cpp_demangle
28+
# registerMemoryAssertHandler requires glibc
29+
ifneq ($(IS_MUSL),1)
1830
TESTS+=memoryerror_null_read memoryerror_null_write memoryerror_null_call memoryerror_stackoverflow
1931
endif
2032
line_trace_dflags:=-L--export-dynamic
+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
TESTS := importc_compare
22

3+
# FIXME: fails on Alpine v3.21 with conflicting struct declarations in the C headers:
4+
# /usr/include/asm-generic/fcntl.h(195): Error: struct `importc_includes.flock` conflicts with struct `importc_includes.flock` at /usr/include/fcntl.h(24)
5+
ifeq ($(OS),linux)
6+
ifeq (1,$(shell which apk &>/dev/null && echo 1))
7+
TESTS :=
8+
endif
9+
endif
10+
311
include ../common.mak
412

513
extra_dflags += -d

0 commit comments

Comments
 (0)