From 7be696a0ed9e3a8e09869ed468ef2b22715f6f5f Mon Sep 17 00:00:00 2001 From: Nikos Gorogiannis Date: Mon, 1 Apr 2019 13:22:11 -0700 Subject: [PATCH] [racerd] kill dead tests Reviewed By: jvillard Differential Revision: D14706826 fbshipit-source-id: 26b6e5c6c --- .../build_systems/racerd_traces/Makefile | 27 ------------------- .../build_systems/racerd_traces/issues.exp | 0 .../build_systems/racerd_traces/module1/BUCK | 8 ------ .../racerd_traces/module1/Class1.java | 17 ------------ .../build_systems/racerd_traces/module2/BUCK | 10 ------- .../racerd_traces/module2/Class2.java | 17 ------------ .../build_systems/racerd_traces/module3/BUCK | 7 ----- .../racerd_traces/module3/Class3.java | 25 ----------------- 8 files changed, 111 deletions(-) delete mode 100644 infer/tests/build_systems/racerd_traces/Makefile delete mode 100644 infer/tests/build_systems/racerd_traces/issues.exp delete mode 100644 infer/tests/build_systems/racerd_traces/module1/BUCK delete mode 100644 infer/tests/build_systems/racerd_traces/module1/Class1.java delete mode 100644 infer/tests/build_systems/racerd_traces/module2/BUCK delete mode 100644 infer/tests/build_systems/racerd_traces/module2/Class2.java delete mode 100644 infer/tests/build_systems/racerd_traces/module3/BUCK delete mode 100644 infer/tests/build_systems/racerd_traces/module3/Class3.java diff --git a/infer/tests/build_systems/racerd_traces/Makefile b/infer/tests/build_systems/racerd_traces/Makefile deleted file mode 100644 index 18b680486..000000000 --- a/infer/tests/build_systems/racerd_traces/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - -TESTS_DIR = ../.. -ROOT_DIR = $(TESTS_DIR)/../.. - -BUCK_TARGET = //infer/tests/build_systems/racerd_traces/module3:module3 -INFERPRINT_OPTIONS = --project-root $(ROOT_DIR) --issues-tests -CLEAN_EXTRA = $(ROOT_DIR)/buck-out - -include $(TESTS_DIR)/infer.make - -$(OBJECTS): $(JAVA_SOURCE_FILES) - $(QUIET)cd $(ROOT_DIR) && \ - $(call silent_on_success,Compiling thread-safety trace tests,\ - INFER_BIN=$(INFER_BIN) \ - $(BUCK) build --no-cache $(BUCK_TARGET)) - -infer-out/report.json: $(JAVA_DEPS) $(JAVA_SOURCE_FILES) - $(QUIET)cd $(ROOT_DIR) && \ - $(REMOVE_DIR) buck-out && \ - $(call silent_on_success,Testing thread-safety trace tests with Buck,\ - INFER_BIN=$(INFER_BIN) \ - $(INFER_BIN) --results-dir $(CURDIR)/infer-out -- \ - $(BUCK) build --no-cache $(BUCK_TARGET)) diff --git a/infer/tests/build_systems/racerd_traces/issues.exp b/infer/tests/build_systems/racerd_traces/issues.exp deleted file mode 100644 index e69de29bb..000000000 diff --git a/infer/tests/build_systems/racerd_traces/module1/BUCK b/infer/tests/build_systems/racerd_traces/module1/BUCK deleted file mode 100644 index 91893479d..000000000 --- a/infer/tests/build_systems/racerd_traces/module1/BUCK +++ /dev/null @@ -1,8 +0,0 @@ -java_library( - name='module1', - srcs=['Class1.java'], - deps=[], - visibility=[ - 'PUBLIC' - ], -) diff --git a/infer/tests/build_systems/racerd_traces/module1/Class1.java b/infer/tests/build_systems/racerd_traces/module1/Class1.java deleted file mode 100644 index eb6cb1d99..000000000 --- a/infer/tests/build_systems/racerd_traces/module1/Class1.java +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -package threadsafety_traces.module1; - -public class Class1 { - - static int sField; - - public static void method() { - sField++; - } -} diff --git a/infer/tests/build_systems/racerd_traces/module2/BUCK b/infer/tests/build_systems/racerd_traces/module2/BUCK deleted file mode 100644 index b4df50c6a..000000000 --- a/infer/tests/build_systems/racerd_traces/module2/BUCK +++ /dev/null @@ -1,10 +0,0 @@ -java_library( - name='module2', - srcs=['Class2.java'], - deps=[ - '//infer/tests/build_systems/racerd_traces/module1:module1' - ], - visibility=[ - 'PUBLIC' - ], -) diff --git a/infer/tests/build_systems/racerd_traces/module2/Class2.java b/infer/tests/build_systems/racerd_traces/module2/Class2.java deleted file mode 100644 index 741a4a830..000000000 --- a/infer/tests/build_systems/racerd_traces/module2/Class2.java +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -package threadsafety_traces.module2; - -import threadsafety_traces.module1.Class1; - -public class Class2 { - - public static void method() { - Class1.method(); - } -} diff --git a/infer/tests/build_systems/racerd_traces/module3/BUCK b/infer/tests/build_systems/racerd_traces/module3/BUCK deleted file mode 100644 index 946b4e5ac..000000000 --- a/infer/tests/build_systems/racerd_traces/module3/BUCK +++ /dev/null @@ -1,7 +0,0 @@ -java_library( - name='module3', - srcs=['Class3.java'], - deps=[ - '//infer/tests/build_systems/racerd_traces/module2:module2', - ] -) diff --git a/infer/tests/build_systems/racerd_traces/module3/Class3.java b/infer/tests/build_systems/racerd_traces/module3/Class3.java deleted file mode 100644 index 43bd441a2..000000000 --- a/infer/tests/build_systems/racerd_traces/module3/Class3.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -package threadsafety_traces.module3; - -import threadsafety_traces.module2.Class2; - -@interface ThreadSafe {} - -@ThreadSafe -public class Class3 { - - /** - * this will produce a truncated trace that should bottom out in Class1.method, but will stop - * short due to limitations in our Buck integration. test that we don't report a truncated trace - * in this situation. - */ - public void callClass2() { - Class2.method(); - } -}