diff options
Diffstat (limited to 'llvm/unittests/Support/ErrorTest.cpp')
-rw-r--r-- | llvm/unittests/Support/ErrorTest.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/unittests/Support/ErrorTest.cpp b/llvm/unittests/Support/ErrorTest.cpp index ec5c30b5fba..c4a9f3e5168 100644 --- a/llvm/unittests/Support/ErrorTest.cpp +++ b/llvm/unittests/Support/ErrorTest.cpp @@ -933,7 +933,7 @@ public: class TestErrorCategory : public std::error_category { public: - const char *name() const noexcept override { return "test_error"; } + const char *name() const noexcept override { return "error"; } std::string message(int Condition) const override { switch (static_cast<test_error_code>(Condition)) { case test_error_code::unspecified: @@ -975,11 +975,4 @@ TEST(Error, SubtypeStringErrorTest) { 0); } -TEST(Error, error_codeErrorMessageTest) { - EXPECT_NONFATAL_FAILURE( - EXPECT_EQ(make_error_code(test_error_code::unspecified), - make_error_code(test_error_code::error_2)), - "Which is: An unknown error has occurred. (test_error:1)"); -} - } // namespace |