summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/Inputs
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-06-30 16:01:30 +0000
committerZachary Turner <zturner@google.com>2017-06-30 16:01:30 +0000
commit0955739b36bf64c96bf55c3b49335c1a54ed1b2d (patch)
tree7d01ccb417e8c34330f49e9ca1d7048b1d6b7933 /llvm/test/DebugInfo/Inputs
parentda96c436825ca504cb4a98e78ed276b75dcdf37d (diff)
downloadbcm5719-llvm-0955739b36bf64c96bf55c3b49335c1a54ed1b2d.tar.gz
bcm5719-llvm-0955739b36bf64c96bf55c3b49335c1a54ed1b2d.zip
[lit] Clean output directories before running tests.
Presently lit leaks files in the tests' output directories. Specifically, if a test creates output files, lit makes no effort to remove them prior to the next test run. This is problematic because it leads to false positives whenever a test passes because stale files were present. In general it is a source of flakiness that should be removed. This patch addresses this by building the list of all test directories that are part of the current run set, and then deleting those directories and recreating them anew. This gives each test a clean baseline to start from. Differential Revision: https://reviews.llvm.org/D34732 llvm-svn: 306832
Diffstat (limited to 'llvm/test/DebugInfo/Inputs')
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.cpp7
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwobin1056 -> 1056 bytes
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.obin2968 -> 3360 bytes
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwobin1040 -> 1168 bytes
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.obin2992 -> 3728 bytes
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu1.cpp2
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu2.cpp7
-rwxr-xr-xllvm/test/DebugInfo/Inputs/split-dwarf-testbin9208 -> 9624 bytes
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-test.dwobin1377 -> 1088 bytes
9 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.cpp b/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.cpp
new file mode 100644
index 00000000000..d7361f475a2
--- /dev/null
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.cpp
@@ -0,0 +1,7 @@
+void f1();
+__attribute__((always_inline)) void f2() {
+ f1();
+}
+void f3() {
+ f2();
+}
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo b/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo
index 2a3bc57caa6..44bdaf4bffe 100644
--- a/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo
Binary files differ
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o b/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o
index b6993c6cae2..540302785c2 100644
--- a/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o
Binary files differ
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo
index 4df9894b089..94cc3e9d0f7 100644
--- a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo
Binary files differ
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o
index aa4ab4bc76f..dd0cda4a8ff 100644
--- a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o
Binary files differ
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu1.cpp b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu1.cpp
new file mode 100644
index 00000000000..9bed4bf8b5e
--- /dev/null
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu1.cpp
@@ -0,0 +1,2 @@
+extern int i;
+int i;
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu2.cpp b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu2.cpp
new file mode 100644
index 00000000000..1d17cf38037
--- /dev/null
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu2.cpp
@@ -0,0 +1,7 @@
+void f1();
+inline __attribute__((always_inline)) void f2() {
+ f1();
+}
+void f3() {
+ f2();
+}
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-test b/llvm/test/DebugInfo/Inputs/split-dwarf-test
index 4d6aa0cd98a..0e9d4c880bb 100755
--- a/llvm/test/DebugInfo/Inputs/split-dwarf-test
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-test
Binary files differ
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo b/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo
index 588374d7d21..fb5eb9c0ffa 100644
--- a/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo
+++ b/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo
Binary files differ
OpenPOWER on IntegriCloud