diff options
author | Zachary Turner <zturner@google.com> | 2017-06-30 16:01:30 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-06-30 16:01:30 +0000 |
commit | 0955739b36bf64c96bf55c3b49335c1a54ed1b2d (patch) | |
tree | 7d01ccb417e8c34330f49e9ca1d7048b1d6b7933 /llvm/test/DebugInfo/Inputs | |
parent | da96c436825ca504cb4a98e78ed276b75dcdf37d (diff) | |
download | bcm5719-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.cpp | 7 | ||||
-rw-r--r-- | llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo | bin | 1056 -> 1056 bytes | |||
-rw-r--r-- | llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o | bin | 2968 -> 3360 bytes | |||
-rw-r--r-- | llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo | bin | 1040 -> 1168 bytes | |||
-rw-r--r-- | llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o | bin | 2992 -> 3728 bytes | |||
-rw-r--r-- | llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu1.cpp | 2 | ||||
-rw-r--r-- | llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu2.cpp | 7 | ||||
-rwxr-xr-x | llvm/test/DebugInfo/Inputs/split-dwarf-test | bin | 9208 -> 9624 bytes | |||
-rw-r--r-- | llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo | bin | 1377 -> 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 Binary files differindex 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 diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o b/llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o Binary files differindex 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 diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo Binary files differindex 4df9894b089..94cc3e9d0f7 100644 --- a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.dwo diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o Binary files differindex aa4ab4bc76f..dd0cda4a8ff 100644 --- a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.o 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 Binary files differindex 4d6aa0cd98a..0e9d4c880bb 100755 --- a/llvm/test/DebugInfo/Inputs/split-dwarf-test +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-test diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo b/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo Binary files differindex 588374d7d21..fb5eb9c0ffa 100644 --- a/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo +++ b/llvm/test/DebugInfo/Inputs/split-dwarf-test.dwo |