Only test druntime exceptions gdb test case (rt_trap_exceptions_drt_gdb) when gdb is available. (#16513)

This commit is contained in:
Johan Engelen 2024-05-20 00:17:23 +02:00 committed by GitHub
parent cc66e60109
commit 673ddf38bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,9 @@
include ../common.mak
DIFF:=diff
SED:=sed
GDB:=gdb
TESTS=stderr_msg unittest_assert invalid_memory_operation unknown_gc static_dtor \
future_message refcounted rt_trap_exceptions_drt catch_in_finally \
message_with_null
@ -9,8 +13,11 @@ ifeq ($(OS)-$(BUILD),linux-debug)
LINE_TRACE_DFLAGS:=-L--export-dynamic
endif
ifeq ($(OS),linux)
# Only add this test if gdb is available.
ifneq (, $(shell which $(GDB)))
TESTS+=rt_trap_exceptions_drt_gdb
endif
endif
ifeq ($(OS)-$(BUILD),freebsd-debug)
TESTS+=line_trace line_trace_21656 long_backtrace_trunc cpp_demangle
LINE_TRACE_DFLAGS:=-L--export-dynamic
@ -31,10 +38,6 @@ ifeq ($(BUILD),debug)
TESTS+=assert_fail
endif
DIFF:=diff
SED:=sed
GDB:=gdb
.PHONY: all clean
all: $(addprefix $(ROOT)/,$(addsuffix .done,$(TESTS)))