[apparmor] [PATCH] tests: Make the regression tests easier to debug

Tyler Hicks tyhicks at canonical.com
Tue Jun 10 17:09:02 UTC 2014


Add debugging info to test binaries and disable optimizations.

Signed-off-by: Tyler Hicks <tyhicks at canonical.com>
---
 tests/regression/apparmor/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/regression/apparmor/Makefile b/tests/regression/apparmor/Makefile
index 55f59a3..2a420b8 100644
--- a/tests/regression/apparmor/Makefile
+++ b/tests/regression/apparmor/Makefile
@@ -46,7 +46,7 @@ libapparmor by adding USE_SYSTEM=1 to your make command.${nl}\
   LDLIBS += -Wl,-Bstatic -lapparmor -Wl,-Bdynamic -lpthread
 endif # USE_SYSTEM
 
-CFLAGS += -Wall -Wstrict-prototypes
+CFLAGS += -g -O0 -Wall -Wstrict-prototypes
 
 SRC=access.c \
     introspect.c \
-- 
1.9.1




More information about the AppArmor mailing list