浏览代码

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

Mike Frysinger 18 年之前
父节点
当前提交
c40c7db317
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      test/Test.mak

+ 4 - 0
test/Test.mak

@@ -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)