Skip to content

Commit eb24724

Browse files
author
Christian Hergert
committed
tests: add debug target to simplify gdb debugging.
`make debug' will now drop you into gdb with the unit tests loaded. simply `r' to start running, `bt' to get a stack trace.
1 parent 4e6ccc2 commit eb24724

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Makefile.am

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ test_libmongoc_SOURCES = \
8383
tests/test-mongoc-uri.c \
8484
tests/test-mongoc-write-concern.c \
8585
tests/test-libmongoc.h \
86+
tests/test-write-commands.c \
8687
tests/TestSuite.c \
8788
tests/TestSuite.h
8889
if ENABLE_SSL
@@ -202,3 +203,6 @@ EXTRA_DIST += \
202203
tests/mongoc-tests.c \
203204
tests/mongoc-tests.h \
204205
tests/trust_dir.cnf
206+
207+
debug: test-libmongoc
208+
$(LIBTOOL) --mode=execute gdb --args test-libmongoc -f -p

0 commit comments

Comments
 (0)