From 78bf67c0d30cbd121a34c9fee5def678f0c027e7 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Sat, 27 Sep 2014 14:55:00 -0700 Subject: Raise SIGTRAP on all assertion failures Makes it easy to run tests w/ gdb for debugging --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7b3cead..4854fca 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ CFLAGS+=-Wall -Wextra -g -std=c99 -O3 -pedantic PREFIX?=/usr/local MANDIR?=$(PREFIX)/share/man BINDIR?=$(PREFIX)/bin -VALGRIND?= +DEBUGGER?= INSTALL=install INSTALL_PROGRAM=$(INSTALL) @@ -17,7 +17,7 @@ fzytest: fzytest.o match.o choices.o $(CC) $(CFLAGS) $(CCFLAGS) -o $@ $^ test: fzytest - -$(VALGRIND) ./fzytest + -$(DEBUGGER) ./fzytest fzy: fzy.o match.o tty.o choices.o $(CC) $(CFLAGS) $(CCFLAGS) -o $@ $^ -- cgit v1.2.3