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/split-dwarf-multiple-cu2.cpp | |
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/split-dwarf-multiple-cu2.cpp')
-rw-r--r-- | llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu2.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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(); +} |