diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-30 21:05:56 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-30 21:05:56 +0000 |
commit | 0ff671b3be5cbd46a1656639058f969535ac9ad0 (patch) | |
tree | a0bc8d792fde83c5bb64e48bd81d0cd1fad0373a /clang-tools-extra/unittests/cpp11-migrate/IncludeExcludeTest.cpp | |
parent | 4c80bfbd53cafa3690ba5c65459cf6cfc560e2e3 (diff) | |
download | bcm5719-llvm-0ff671b3be5cbd46a1656639058f969535ac9ad0.tar.gz bcm5719-llvm-0ff671b3be5cbd46a1656639058f969535ac9ad0.zip |
Revert "cpp11-migrate: Write header replacements to disk"
This reverts commit 187428. It broke the windows bots.
http://bb.pgr.jp/builders/ninja-clang-i686-msc17-R/builds/3450
llvm-svn: 187447
Diffstat (limited to 'clang-tools-extra/unittests/cpp11-migrate/IncludeExcludeTest.cpp')
-rw-r--r-- | clang-tools-extra/unittests/cpp11-migrate/IncludeExcludeTest.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/clang-tools-extra/unittests/cpp11-migrate/IncludeExcludeTest.cpp b/clang-tools-extra/unittests/cpp11-migrate/IncludeExcludeTest.cpp index 6a206df60aa..7aea471c21a 100644 --- a/clang-tools-extra/unittests/cpp11-migrate/IncludeExcludeTest.cpp +++ b/clang-tools-extra/unittests/cpp11-migrate/IncludeExcludeTest.cpp @@ -7,13 +7,24 @@ // //===----------------------------------------------------------------------===// -#include "Utility.h" #include "Core/IncludeExcludeInfo.h" #include "gtest/gtest.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/Path.h" #include <fstream> +// FIXME: copied from unittests/Support/Path.cpp +#define ASSERT_NO_ERROR(x) \ + if (llvm::error_code ASSERT_NO_ERROR_ec = x) { \ + llvm::SmallString<128> MessageStorage; \ + llvm::raw_svector_ostream Message(MessageStorage); \ + Message << #x ": did not return errc::success.\n" \ + << "error number: " << ASSERT_NO_ERROR_ec.value() << "\n" \ + << "error message: " << ASSERT_NO_ERROR_ec.message() << "\n"; \ + GTEST_FATAL_FAILURE_(MessageStorage.c_str()); \ + } else { \ + } + TEST(IncludeExcludeTest, ParseString) { IncludeExcludeInfo IEManager; llvm::error_code Err = IEManager.readListFromString( |