OSDN Git Service

fail if test.c is found so i stop screwing myself up
authorMike Frysinger <vapier@gentoo.org>
Tue, 28 Feb 2006 00:41:11 +0000 (00:41 -0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 28 Feb 2006 00:41:11 +0000 (00:41 -0000)
test/Test.mak

index 24499fa..2a22da3 100644 (file)
@@ -11,6 +11,10 @@ ifneq ($(TESTS_DISABLED),)
 TESTS := $(filter-out $(TESTS_DISABLED),$(TESTS))
 endif
 
+ifneq ($(filter-out test,$(TESTS)),$(TESTS))
+$(error Sanity check: cannot have a test named "test.c")
+endif
+
 include ../Rules.mak
 
 U_TARGETS := $(TESTS)