From 941b63a426a8a6b5ab47b2370cdd2e118330ee76 Mon Sep 17 00:00:00 2001 From: Nikos Gorogiannis Date: Wed, 24 Apr 2019 07:22:12 -0700 Subject: [PATCH] [classloads] remove possible race Reviewed By: mbouaziz Differential Revision: D15062321 fbshipit-source-id: 3a0781c29 --- infer/tests/codetoanalyze/java/classloads/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/infer/tests/codetoanalyze/java/classloads/Makefile b/infer/tests/codetoanalyze/java/classloads/Makefile index c91db0de7..534affc21 100644 --- a/infer/tests/codetoanalyze/java/classloads/Makefile +++ b/infer/tests/codetoanalyze/java/classloads/Makefile @@ -26,15 +26,13 @@ include $(TESTS_DIR)/base.make .PHONY: clean clean: - $(REMOVE_DIR) codetoanalyze com issues.exp.test$(TEST_SUFFIX) $(OBJECTS) $(CLEAN_EXTRA) + $(REMOVE_DIR) codetoanalyze com issues.exp.test$(TEST_SUFFIX) $(CLEAN_EXTRA) ifneq ($(INFER_OUT),.) $(REMOVE_DIR) $(INFER_OUT) endif PROJECT_ROOT ?= $(TESTS_DIR) -$(OBJECTS): $(SOURCES) - $(QUIET)$(JAVAC) -cp $(CLASSPATH) $(SOURCES) issues.exp.test$(TEST_SUFFIX): $(INFER_OUT)/report.json $(INFER_BIN) $(QUIET)$(INFER_BIN) report -q --results-dir $( $@ endif +# infer compiles as well as analyses; dependency ensures class files are generated +$(OBJECTS): issues.exp.test$(TEST_SUFFIX) loads.exp: $(LOADS) - $(QUIET)for F in $(LOADS) ; do sed -e "s#^#$(TEST_REL_DIR)/$${F%.*}.java, #" $$F ; done | sort > loads.exp loads.exp.test: issues.exp.test$(TEST_SUFFIX)