Another testsuite patch
Branko
Branko
Wed Jun 7 03:37:00 GMT 2000
The test
26_numerics/complex_inserters_extractors.cc
fails because fabs wasn't declared. With this patch, I get
pass/fail results: 135/3
on sparc-sun-solaris2.6.
Brane
--
Branko Čibej <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 1) 586 53 49 fax: (+386 1) 586 52 70
2000-06-07 Branko Cibej <branko.cibej@hermes.si>
* testsuite/26_numerics/complex_inserters_extractors.cc:
Include <cmath>.
(flteq): Qualify fabs with std::.
Index: complex_inserters_extractors.cc
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/testsuite/26_numerics/complex_inserters_extractors.cc,v
retrieving revision 1.1
diff -u -r1.1 complex_inserters_extractors.cc
--- complex_inserters_extractors.ccÃÂ 2000/04/21 20:33:34ÃÂ 1.1
+++ complex_inserters_extractors.ccÃÂ 2000/06/07 10:23:35
@@ -24,6 +24,7 @@
#include <string>
#include <sstream>
#include <complex>
+#include <cmath>
#ifdef DEBUG_ASSERT
#include <assert.h>
#endif
@@ -32,7 +33,7 @@
inline bool flteq(R x, R y)
{
if (x == R(0)) return y == R(0);
- else return fabs(x-y) < 1e-6*fabs(x);
+ else return std::fabs(x-y) < 1e-6*std::fabs(x);
}
template<typename R>
host: SunOS 5.6 Generic_105181-17 sun4u
compiler: 2.96
compiler flags: -g -DDEBUG_ASSERT
date: 20000607
pass/fail results: 135/3
p == pass/fail execution test
ctime == time to compile and link
etime == time for executable to run
text == size of the executable text section
data == size of the executable data section
total == size of the executable
(First static, then shared.)
p ctime etime text data total name
+ 1 0.007 text 165496 17_intro/header_ciso646.cc
+ 1 0.302 text 2353 17_intro/header_ciso646.cc
+ 7 0.007 text 16869 17_intro/header_fstream.cc
+ 5 0.026 text 2360 17_intro/header_fstream.cc
+ 4 0.007 text 16869 17_intro/header_iomanip.cc
+ 4 0.027 text 1940 17_intro/header_iomanip.cc
+ 3 0.007 text 16869 17_intro/header_ios.cc
+ 3 0.026 text 1940 17_intro/header_ios.cc
+ 1 0.007 text 16505 17_intro/header_iosfwd.cc
+ 1 0.026 text 1576 17_intro/header_iosfwd.cc
+ 6 0.008 text 395726 17_intro/header_iostream.cc
+ 4 0.026 text 2279 17_intro/header_iostream.cc
+ 3 0.007 text 16869 17_intro/header_istream.cc
+ 4 0.027 text 1940 17_intro/header_istream.cc
+ 4 0.007 text 16869 17_intro/header_ostream.cc
+ 3 0.028 text 1940 17_intro/header_ostream.cc
+ 3 0.007 text 16869 17_intro/header_sstream.cc
+ 3 0.031 text 1940 17_intro/header_sstream.cc
+ 3 0.007 text 16869 17_intro/header_streambuf.cc
+ 3 0.027 text 1940 17_intro/header_streambuf.cc
+ 12 0.008 text 395734 17_intro/headers.cc
+ 11 0.027 text 2711 17_intro/headers.cc
+ 1 0.008 text 187996 18_support/numeric_limits.cc
+ 1 0.026 text 3501 18_support/numeric_limits.cc
+ 5 0.008 text 204220 21_strings/append.cc
+ 5 0.059 text 23809 21_strings/append.cc
+ 6 0.008 text 209884 21_strings/capacity.cc
+ 6 0.029 text 28846 21_strings/capacity.cc
+ 4 0.008 text 193936 21_strings/char_traits.cc
+ 3 0.026 text 9596 21_strings/char_traits.cc
+ 4 0.008 text 198096 21_strings/compare.cc
+ 4 0.027 text 14564 21_strings/compare.cc
+ 4 0.010 text 199916 21_strings/ctor_copy_dtor.cc
+ 4 0.031 text 17463 21_strings/ctor_copy_dtor.cc
+ 4 0.008 text 194608 21_strings/element_access.cc
+ 3 0.029 text 11223 21_strings/element_access.cc
+ 4 0.009 text 199860 21_strings/find.cc
+ 3 0.028 text 15416 21_strings/find.cc
+ 5 0.009 text 202552 21_strings/insert.cc
+ 5 0.031 text 21347 21_strings/insert.cc
+ 10 0.066 text 411398 21_strings/inserters_extractors.cc
+ 9 0.126 text 45836 21_strings/inserters_extractors.cc
+ 5 0.008 text 202400 21_strings/invariants.cc
+ 5 0.027 text 18832 21_strings/invariants.cc
+ 5 0.008 text 207040 21_strings/nonmember.cc
+ 4 0.028 text 25118 21_strings/nonmember.cc
+ 4 0.008 text 195488 21_strings/operations.cc
+ 4 0.028 text 12276 21_strings/operations.cc
+ 5 0.008 text 202180 21_strings/replace.cc
+ 5 0.027 text 19326 21_strings/replace.cc
+ 4 0.008 text 196440 21_strings/substr.cc
+ 3 0.028 text 13618 21_strings/substr.cc
+ 6 0.008 text 397006 22_locale/ctype.cc
+ 5 0.027 text 4623 22_locale/ctype.cc
+ 6 0.009 text 397834 22_locale/ctype_char_members.cc
+ 5 0.026 text 6578 22_locale/ctype_char_members.cc
+ 7 0.008 text 201324 23_containers/bitset_ctor.cc
+ 6 0.029 text 18664 23_containers/bitset_ctor.cc
+ 8 1.296 text 212668 23_containers/bitset_shift.cc
+ 9 1.291 text 29756 23_containers/bitset_shift.cc
+ 7 0.000 text 403690 23_containers/multiset.cc
+ 6 0.000 text 12510 23_containers/multiset.cc
+ 3 0.008 text 195436 23_containers/vector_capacity.cc
+ 3 0.026 text 11826 23_containers/vector_capacity.cc
+ 7 0.008 text 427054 23_containers/vector_ctor.cc
+ 6 0.027 text 35210 23_containers/vector_ctor.cc
+ 4 0.008 text 201240 23_containers/vector_modifiers.cc
+ 4 0.027 text 17684 23_containers/vector_modifiers.cc
+ 7 0.009 text 404266 24_iterators/istreambuf_iterator.cc
+ 7 0.027 text 25988 24_iterators/istreambuf_iterator.cc
+ 9 0.008 text 218372 24_iterators/iterator.cc
+ 8 0.027 text 35231 24_iterators/iterator.cc
+ 2 0.007 text 165496 25_algorithms/min_max.cc
+ 2 0.026 text 2356 25_algorithms/min_max.cc
+ 9 0.000 text 400522 26_numerics/binary_closure.cc
+ 8 0.000 text 8487 26_numerics/binary_closure.cc
+ 1 0.007 text 17081 26_numerics/buggy_complex.cc
+ 1 0.026 text 2152 26_numerics/buggy_complex.cc
+ 1 0.007 text 195812 26_numerics/c_math.cc
+ 0 0.026 text 2349 26_numerics/c_math.cc
- 8 0.000 text 418070 26_numerics/complex_inserters_extractors.cc
+ 7 0.046 text 32420 26_numerics/complex_inserters_extractors.cc
+ 5 0.008 text 187296 26_numerics/valarray.cc
+ 4 0.028 text 2168 26_numerics/valarray.cc
+ 9 0.028 text 416158 27_io/filebuf.cc
+ 8 0.051 text 38059 27_io/filebuf.cc
+ 3 0.008 text 167324 27_io/fpos.cc
+ 3 0.026 text 4188 27_io/fpos.cc
+ 6 0.009 text 402006 27_io/ios_base_callbacks.cc
+ 6 0.027 text 22138 27_io/ios_base_callbacks.cc
+ 6 0.009 text 400010 27_io/ios_base_members_static.cc
+ 6 0.027 text 18531 27_io/ios_base_members_static.cc
+ 6 0.008 text 401170 27_io/ios_ctor.cc
+ 5 0.027 text 21045 27_io/ios_ctor.cc
+ 8 777.000 text 404006 27_io/ios_manip_basefield.cc
+ 7 777.000 text 30529 27_io/ios_manip_basefield.cc
+ 9 0.000 text 404542 27_io/ios_manip_fmtflags.cc
+ 8 0.000 text 33028 27_io/ios_manip_fmtflags.cc
+ 5 0.009 text 399810 27_io/ios_members.cc
+ 4 0.028 text 13364 27_io/ios_members.cc
+ 13 0.000 text 396258 27_io/iostream_objects.cc
+ 11 0.000 text 4589 27_io/iostream_objects.cc
+ 3 0.007 text 16869 27_io/istream.cc
+ 4 0.026 text 1940 27_io/istream.cc
- 10 0.000 text 413746 27_io/istream_extractor_arith.cc
- 9 0.000 text 46335 27_io/istream_extractor_arith.cc
+ 7 0.009 text 406782 27_io/istream_extractor_char.cc
+ 6 0.028 text 29630 27_io/istream_extractor_char.cc
+ 8 0.022 text 406470 27_io/istream_extractor_other.cc
+ 7 0.059 text 30163 27_io/istream_extractor_other.cc
+ 7 0.009 text 403474 27_io/istream_manip.cc
+ 6 0.028 text 24081 27_io/istream_manip.cc
+ 6 0.009 text 400118 27_io/istream_sentry.cc
+ 5 0.028 text 20501 27_io/istream_sentry.cc
+ 11 0.011 text 420686 27_io/istream_unformatted.cc
+ 9 0.029 text 48432 27_io/istream_unformatted.cc
+ 6 0.008 text 401330 27_io/istringstream_members.cc
+ 5 0.028 text 25929 27_io/istringstream_members.cc
+ 3 0.007 text 16869 27_io/ostream.cc
+ 3 0.027 text 1940 27_io/ostream.cc
+ 10 0.000 text 415434 27_io/ostream_inserter_arith.cc
+ 8 0.000 text 44770 27_io/ostream_inserter_arith.cc
+ 10 0.279 text 408874 27_io/ostream_inserter_char.cc
+ 8 0.244 text 41241 27_io/ostream_inserter_char.cc
+ 8 0.028 text 400126 27_io/ostream_inserter_other.cc
+ 7 0.050 text 27450 27_io/ostream_inserter_other.cc
+ 7 0.008 text 401630 27_io/ostream_manip.cc
+ 6 0.027 text 27799 27_io/ostream_manip.cc
+ 6 0.008 text 399878 27_io/ostream_unformatted.cc
+ 5 0.030 text 20706 27_io/ostream_unformatted.cc
+ 6 0.009 text 407610 27_io/streambuf.cc
+ 6 0.027 text 27936 27_io/streambuf.cc
+ 8 0.009 text 416642 27_io/stringbuf.cc
+ 7 0.028 text 39292 27_io/stringbuf.cc
+ 8 0.009 text 405398 27_io/stringstream.cc
+ 7 0.028 text 34036 27_io/stringstream.cc
+ 9 0.008 text 395846 ext/headers.cc
+ 7 0.027 text 2403 ext/headers.cc
More information about the Libstdc++
mailing list