Commit 0db54514 by Benjamin Kosnik Committed by Benjamin Kosnik

stdexceptions.cc (test03): Fix.


2001-02-27  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/19_diagnostics/stdexceptions.cc (test03): Fix.

From-SVN: r40095
parent b71b019a
2001-02-27 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/19_diagnostics/stdexceptions.cc (test03): Fix.
2001-02-26 Benjamin Kosnik <bkoz@redhat.com> 2001-02-26 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/1972 libstdc++/1972
......
...@@ -38,7 +38,7 @@ void test01() ...@@ -38,7 +38,7 @@ void test01()
// 2 // 2
// std::logic_error obj((std::string)strlit); // std::logic_error obj((std::string)strlit);
VERIFY( strcmp(obj.what(), s.data()) ); VERIFY( strcmp(obj.what(), s.data()) == 0 );
} }
void test02() void test02()
...@@ -47,7 +47,7 @@ void test02() ...@@ -47,7 +47,7 @@ void test02()
std::string s("lack of sunlight error"); std::string s("lack of sunlight error");
std::domain_error x(s); std::domain_error x(s);
VERIFY( strcmp(x.what(), s.data()) ); VERIFY( strcmp(x.what(), s.data()) == 0 );
} }
// libstdc++/2089 // libstdc++/2089
...@@ -64,7 +64,7 @@ void test03() ...@@ -64,7 +64,7 @@ void test03()
try try
{ throw fuzzy_logic(); } { throw fuzzy_logic(); }
catch(const fuzzy_logic& obj) catch(const fuzzy_logic& obj)
{ VERIFY( strcmp("whoa", obj.what()) ); } { VERIFY( strcmp("whoa", obj.what()) == 0 ); }
catch(...) catch(...)
{ VERIFY( false ); } { VERIFY( false ); }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment