mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
Only test druntime exceptions gdb test case (rt_trap_exceptions_drt_gdb) when gdb is available. (#16513)
This commit is contained in:
parent
cc66e60109
commit
673ddf38bc
1 changed files with 8 additions and 5 deletions
|
@ -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,7 +13,10 @@ ifeq ($(OS)-$(BUILD),linux-debug)
|
|||
LINE_TRACE_DFLAGS:=-L--export-dynamic
|
||||
endif
|
||||
ifeq ($(OS),linux)
|
||||
TESTS+=rt_trap_exceptions_drt_gdb
|
||||
# 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
|
||||
|
@ -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)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue