Fix usr/grp formatting unit test when id fails

This commit is contained in:
Daniel Roethlisberger 2014-11-16 22:30:50 +01:00
parent 328e3320f9
commit 6f2f0af0c3

View File

@ -319,8 +319,8 @@ endif
%.o: %.c $(HDRS) GNUmakefile %.o: %.c $(HDRS) GNUmakefile
$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
test: TCPPFLAGS+=-D"TEST_ZEROUSR=\"$(shell id -u -n 0)\"" test: TCPPFLAGS+=-D"TEST_ZEROUSR=\"$(shell id -u -n 0||echo 0)\""
test: TCPPFLAGS+=-D"TEST_ZEROGRP=\"$(shell id -g -n 0)\"" test: TCPPFLAGS+=-D"TEST_ZEROGRP=\"$(shell id -g -n 0||echo 0)\""
test: $(TARGET).test test: $(TARGET).test
$(RM) extra/pki/session.pem $(RM) extra/pki/session.pem
$(MAKE) -C extra/pki testreqs session $(MAKE) -C extra/pki testreqs session