This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
(mainline and 3.1) PATCH: testsuite/18_support/numeric_limits.cc
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 29 Mar 2002 00:35:55 -0600 (CST)
- Subject: (mainline and 3.1) PATCH: testsuite/18_support/numeric_limits.cc
- Reply-to: rittle at labs dot mot dot com
This recent patch:
* testsuite/18_support/numeric_limits.cc (test_extrema): Make
debugger-friendly.
accidentally changed two purposeful '/' to '-', breaking the test
(which was a specialization only exercised on FreeBSD).
Applied as obvious to both locations.
* testsuite/18_support/numeric_limits.cc (test_extrema): Fix typo.
Index: testsuite/18_support/numeric_limits.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/18_support/numeric_limits.cc,v
retrieving revision 1.11
diff -c -r1.11 numeric_limits.cc
*** numeric_limits.cc 2002/03/28 03:15:07 1.11
--- numeric_limits.cc 2002/03/29 06:24:20
***************
*** 87,94 ****
VERIFY( (extrema_min - limits_min) < epsilon );
VERIFY( (limits_min - extrema_min) < epsilon );
! VERIFY( (extrema_max - limits_max) < (1 + epsilon) );
! VERIFY( (limits_max - extrema_max) < (1 + epsilon) );
}
#endif
--- 87,94 ----
VERIFY( (extrema_min - limits_min) < epsilon );
VERIFY( (limits_min - extrema_min) < epsilon );
! VERIFY( (extrema_max / limits_max) < (1 + epsilon) );
! VERIFY( (limits_max / extrema_max) < (1 + epsilon) );
}
#endif