Explorar o código

fail if test.c is found so i stop screwing myself up

Mike Frysinger %!s(int64=19) %!d(string=hai) anos
pai
achega
c40c7db317
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      test/Test.mak

+ 4 - 0
test/Test.mak

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