[clang-tools-extra] r187153 - cpp11-migrate: Tweak lit tests to avoid false negatives

Edwin Vane edwin.vane at intel.com
Thu Jul 25 13:20:21 PDT 2013


Author: revane
Date: Thu Jul 25 15:20:20 2013
New Revision: 187153

URL: http://llvm.org/viewvc/llvm-project?rev=187153&view=rev
Log:
cpp11-migrate: Tweak lit tests to avoid false negatives

Recent failures on a freebsd buildbot indicated a weakness in the
Reformatting.cpp lit test. Tweaking the test to avoid false negatives and
hopefully make the buildbot happy.


Modified:
    clang-tools-extra/trunk/test/cpp11-migrate/Core/Reformatting.cpp

Modified: clang-tools-extra/trunk/test/cpp11-migrate/Core/Reformatting.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/cpp11-migrate/Core/Reformatting.cpp?rev=187153&r1=187152&r2=187153&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/cpp11-migrate/Core/Reformatting.cpp (original)
+++ clang-tools-extra/trunk/test/cpp11-migrate/Core/Reformatting.cpp Thu Jul 25 15:20:20 2013
@@ -1,6 +1,7 @@
 // RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
-// RUN: not cpp11-migrate -format-style=FOO -use-auto %t.cpp -- -std=c++11
-// RUN: not cpp11-migrate -format-style=/tmp/ -use-auto %t.cpp -- -std=c++11
+// RUN: not cpp11-migrate -format-style=non_existent_file.yaml -use-auto %t.cpp -- -std=c++11
+// RUN: touch %T/non_format_config.yaml
+// RUN: not cpp11-migrate -format-style=%T/non_format_config.yaml -use-auto %t.cpp -- -std=c++11
 // RUN: cpp11-migrate -format-style=LLVM -use-auto %t.cpp -- -std=c++11
 // RUN: FileCheck --strict-whitespace -input-file=%t.cpp %s
 





More information about the cfe-commits mailing list