From 18424c8e5af76a02cf12fd6058324d745dac35d4 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Fri, 7 Oct 2016 09:23:28 +0000 Subject: [PATCH] Fix buildbot error. The error maybe caused by the mixed environment of the two lint tests. Cleanup the environment before running each test. llvm-svn: 283534 --- clang-tools-extra/test/clang-move/move-class.cpp | 1 + clang-tools-extra/test/clang-move/move-multiple-classes.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/clang-tools-extra/test/clang-move/move-class.cpp b/clang-tools-extra/test/clang-move/move-class.cpp index af49cf5..937bf93 100644 --- a/clang-tools-extra/test/clang-move/move-class.cpp +++ b/clang-tools-extra/test/clang-move/move-class.cpp @@ -1,3 +1,4 @@ +// RUN: rm -rf %T/clang-move // RUN: mkdir -p %T/clang-move/build // RUN: sed 's|$test_dir|%/T/clang-move|g' %S/Inputs/database_template.json > %T/clang-move/compile_commands.json // RUN: cp %S/Inputs/test* %T/clang-move/ diff --git a/clang-tools-extra/test/clang-move/move-multiple-classes.cpp b/clang-tools-extra/test/clang-move/move-multiple-classes.cpp index 0633099..31a87f6 100644 --- a/clang-tools-extra/test/clang-move/move-multiple-classes.cpp +++ b/clang-tools-extra/test/clang-move/move-multiple-classes.cpp @@ -1,3 +1,4 @@ +// RUN: rm -rf %T/clang-move // RUN: mkdir -p %T/clang-move/build // RUN: sed 's|$test_dir|%/T/clang-move|g' %S/Inputs/database_template.json > %T/clang-move/compile_commands.json // RUN: cp %S/Inputs/multiple_class_test* %T/clang-move/ -- 2.7.4