From e7bb35110192782ad72e98e252b2df13f902137a Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 17 Jun 2003 00:09:03 +0200 Subject: [PATCH] abi_check.cc: Create summary report. 2003-06-16 Andreas Jaeger * testsuite/abi_check.cc: Create summary report. From-SVN: r68044 --- libstdc++-v3/ChangeLog | 4 +++ libstdc++-v3/testsuite/abi_check.cc | 49 +++++++++++++++++++---------- 2 files changed, 36 insertions(+), 17 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b9df7403039..edc2e5b1877 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2003-06-16 Andreas Jaeger + + * testsuite/abi_check.cc: Create summary report. + 2003-06-16 Paolo Carlini * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix diff --git a/libstdc++-v3/testsuite/abi_check.cc b/libstdc++-v3/testsuite/abi_check.cc index 51c384f9d55..c2768258f09 100644 --- a/libstdc++-v3/testsuite/abi_check.cc +++ b/libstdc++-v3/testsuite/abi_check.cc @@ -412,25 +412,40 @@ main(int argc, char** argv) } // Report results. - cout << added_names.size() << " added symbols " << endl; - for (size_t j = 0; j < added_names.size() ; ++j) - report_symbol_info(test_symbols[added_names[j]], j + 1); - - cout << missing_names.size() << " missing symbols " << endl; - for (size_t j = 0; j < missing_names.size() ; ++j) - report_symbol_info(baseline_symbols[missing_names[j]], j + 1); - - cout << incompatible.size() << " incompatible symbols " << endl; - for (size_t j = 0; j < incompatible.size() ; ++j) + if (added_names.size()) { - // First, report name. - const symbol_info& base = incompatible[j].first; - const symbol_info& test = incompatible[j].second; - report_symbol_info(test, j + 1, false); - - // Second, report reason or reasons incompatible. - check_compatible(base, test, true); + cout << added_names.size() << " added symbols " << endl; + for (size_t j = 0; j < added_names.size() ; ++j) + report_symbol_info(test_symbols[added_names[j]], j + 1); + } + + if (missing_names.size()) + { + cout << missing_names.size() << " missing symbols " << endl; + for (size_t j = 0; j < missing_names.size() ; ++j) + report_symbol_info(baseline_symbols[missing_names[j]], j + 1); } + + if (incompatible.size ()) + { + cout << incompatible.size() << " incompatible symbols " << endl; + for (size_t j = 0; j < incompatible.size() ; ++j) + { + // First, report name. + const symbol_info& base = incompatible[j].first; + const symbol_info& test = incompatible[j].second; + report_symbol_info(test, j + 1, false); + + // Second, report reason or reasons incompatible. + check_compatible(base, test, true); + } + } + + cout << "\n\t\t=== libstdc++-v3 check-abi Summary for " << baseline_file + << " ===" << endl << endl; + cout << "# of added symbols:\t\t " << added_names.size() << endl; + cout << "# of missing symbols:\t\t " << missing_names.size() << endl; + cout << "# of incompatible symbols:\t " << incompatible.size() << endl; return 0; } -- 2.30.2