diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2001-02-27 16:16:12 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2001-02-27 16:16:12 +0000 |
commit | 0db54514fa6784bf45d2081d640010fdddedebeb (patch) | |
tree | 91b770a99d56fd123612875b293a450b4366a282 | |
parent | b71b019ac4dffc46b6f9c8cf64125414e97fc080 (diff) | |
download | gcc-0db54514fa6784bf45d2081d640010fdddedebeb.zip gcc-0db54514fa6784bf45d2081d640010fdddedebeb.tar.gz gcc-0db54514fa6784bf45d2081d640010fdddedebeb.tar.bz2 |
stdexceptions.cc (test03): Fix.
2001-02-27 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/19_diagnostics/stdexceptions.cc (test03): Fix.
From-SVN: r40095
-rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/19_diagnostics/stdexceptions.cc | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 8a4302c..d5d4852 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2001-02-27 Benjamin Kosnik <bkoz@redhat.com> + + * testsuite/19_diagnostics/stdexceptions.cc (test03): Fix. + 2001-02-26 Benjamin Kosnik <bkoz@redhat.com> libstdc++/1972 diff --git a/libstdc++-v3/testsuite/19_diagnostics/stdexceptions.cc b/libstdc++-v3/testsuite/19_diagnostics/stdexceptions.cc index 6969ae1..11816ba1 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 ); } } |