iso646 fixes

Nathan Myers ncm@cantrip.org
Wed May 17 15:40:00 GMT 2000


On Wed, May 17, 2000 at 02:42:37PM -0700, Benjamin Kosnik wrote:
> In. Just a side note, the test01, test02 fused statement was nixed, just 
> because of single-stepping in a debugger. 

As it was, failure didn't report anything unless ASSERT was turned on.
Is that desired behavior?  Why return the results of individual tests,
then? 

Try the attached, instead...

Nathan Myers
ncm at cantrip dot org

---------------

Index: libstdc++-v3/testsuite/17_intro/header_ciso646.cc
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/testsuite/17_intro/header_ciso646.cc,v
retrieving revision 1.2
diff -u -r1.2 header_ciso646.cc
--- header_ciso646.cc   2000/05/17 21:46:40     1.2
+++ header_ciso646.cc   2000/05/17 22:36:49
@@ -116,10 +116,11 @@
 
 int main(void)
 {
-  test01();
-  test02();
+  bool good = true;
+  good &&= test01();
+  good &&= test02();
 
-  return 0;
+  return !good;
 }



More information about the Libstdc++ mailing list