From: Benjamin Kosnik Date: Tue, 27 Feb 2001 16:16:12 +0000 (+0000) Subject: stdexceptions.cc (test03): Fix. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0db54514fa6784bf45d2081d640010fdddedebeb;p=gcc.git stdexceptions.cc (test03): Fix. 2001-02-27 Benjamin Kosnik * testsuite/19_diagnostics/stdexceptions.cc (test03): Fix. From-SVN: r40095 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 8a4302cfbca..d5d48526f03 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2001-02-27 Benjamin Kosnik + + * testsuite/19_diagnostics/stdexceptions.cc (test03): Fix. + 2001-02-26 Benjamin Kosnik libstdc++/1972 diff --git a/libstdc++-v3/testsuite/19_diagnostics/stdexceptions.cc b/libstdc++-v3/testsuite/19_diagnostics/stdexceptions.cc index 6969ae19e95..11816ba1560 100644 --- a/libstdc++-v3/testsuite/19_diagnostics/stdexceptions.cc +++ b/libstdc++-v3/testsuite/19_diagnostics/stdexceptions.cc @@ -38,7 +38,7 @@ void test01() // 2 // std::logic_error obj((std::string)strlit); - VERIFY( strcmp(obj.what(), s.data()) ); + VERIFY( strcmp(obj.what(), s.data()) == 0 ); } void test02() @@ -47,7 +47,7 @@ void test02() std::string s("lack of sunlight error"); std::domain_error x(s); - VERIFY( strcmp(x.what(), s.data()) ); + VERIFY( strcmp(x.what(), s.data()) == 0 ); } // libstdc++/2089 @@ -64,7 +64,7 @@ void test03() try { throw fuzzy_logic(); } catch(const fuzzy_logic& obj) - { VERIFY( strcmp("whoa", obj.what()) ); } + { VERIFY( strcmp("whoa", obj.what()) == 0 ); } catch(...) { VERIFY( false ); } }