From patchwork Thu May 16 21:49:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Simmons-Talbott X-Patchwork-Id: 1936247 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=TiN7m52k; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VgNzh2j24z20KF for ; Fri, 17 May 2024 07:49:52 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D77D6384AB54 for ; Thu, 16 May 2024 21:49:48 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 369573858C33 for ; Thu, 16 May 2024 21:49:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 369573858C33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 369573858C33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715896175; cv=none; b=M5iyDpT85pxQCojfFpCteelczSNnp6GZwswZFIU+wgVB1UnmLXx70ptn9kMLKgP9LHq6w9vYnGPBCn/v3ChG/L7A4tDiImuX3Jw3fEwTZLtZHZpyq5iy/rkxFl/q6lWj3ICuAz0QLP9jBoKBGDR2FPcO76CuDP2qDoJCpQoQ/Qw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715896175; c=relaxed/simple; bh=Vut3sMDDCQmmbDzj9wX4y5kZIbdRMRtK7XMdXqX1R54=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=LQu2Vf15a5G0vTcwDu9/mFCPWDCol36wEQLqhK1WHJgzJuNupvl/vLZWItqLl6bK0uhjLr30pa+/n/fR0lC7/J9bma7FwOjOItz/Q62tYyHDg/wi4y/061oDyrzMZKa3Yp/MTnrQtJz7/uChz4hC+ehJOtAkxRgFf82HoaXDLPk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715896171; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cM37GbZ8/ovPDFrowWnXvXNNwQFkqV2wlqS6kWeZ9tY=; b=TiN7m52kZImV1g5J3kkBDwzSgxtLp8cEvN0X00DP7AhwCTKxyMgR4oos4IsMp+dYYWBgWN rxL6rZ7N3CD3rkCwojuCbI9F48BLQ9R/KPW6FTYicjhOz+cFmHTyUcbXgcLJukv7AHN1By CQ5V+pWzdW4mECFfGZrz/sum5dcekyo= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-605-fHBolPa4OfiQNCOPERB36A-1; Thu, 16 May 2024 17:49:30 -0400 X-MC-Unique: fHBolPa4OfiQNCOPERB36A-1 Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-43e17c94165so57696541cf.1 for ; Thu, 16 May 2024 14:49:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715896169; x=1716500969; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cM37GbZ8/ovPDFrowWnXvXNNwQFkqV2wlqS6kWeZ9tY=; b=ZfivBs/uR6SDqy4326GqNy9AEu+AUKrZTVFckap3fiXUUtWkDJlHfuSePEAaleFsZd j2Z1u+TsF/IkTuP8bd/xIL3Kqu/4JtVvap8tXiTsxQcJPeizIoiE7DWM4l2gqV+VUH68 omDJ0LK5HeaEe6dRngntC61mhZOSPLJcvfxTG1mrr6Ijp9OLex3jhkgdDRsrw24qCryI Zx1JFmujleGUZF7spq/Bpv//8dNZu8eOfDqzaJagkIziPOLAS7Qm3y7Yer+iDmJd6fRw NYWpZ9SIZAcr1u3MsuN8JTJcVxvixvCtRN57Ek3tcHogmbNG0NAZ4EuRRWieSNqyabnG wgUA== X-Gm-Message-State: AOJu0YznSnPiyikqbGjouo9tXzVmwPRKK2kt9WKrLfq1I7ePefVioCpW 7zpEt3XAFBYUevw6ld7BHu3nGQ7d9gD2Q/UlT/L9BLhM87ESkHlY68Yx1rVA6mH4fr/JtT3jfmW Mqo/uzUAWpuolWs2lUXfbzhzHesPwJRy97rQkp0PNG7rmcxmWisyQQxjbyaIHBNnC4Ypx2teLux kObC/YWhpAG5vITO6s0Y4uQU+QikRfby0Mmz3Gz3CgNA== X-Received: by 2002:a05:622a:5c9:b0:43e:3d64:89f with SMTP id d75a77b69052e-43e3d640edfmr40089121cf.30.1715896168756; Thu, 16 May 2024 14:49:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFUAtYOLXxvwZk3ZQkRFLwhpaX2eliC/PNXI2aycokCxbPRx8t9zNDRcQQILL5Ye64hWHffWQ== X-Received: by 2002:a05:622a:5c9:b0:43e:3d64:89f with SMTP id d75a77b69052e-43e3d640edfmr40088751cf.30.1715896167831; Thu, 16 May 2024 14:49:27 -0700 (PDT) Received: from oak.redhat.com (c-71-206-142-238.hsd1.va.comcast.net. [71.206.142.238]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-43df54d6e47sm101438021cf.28.2024.05.16.14.49.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 14:49:27 -0700 (PDT) From: Joe Simmons-Talbott To: libc-alpha@sourceware.org Cc: Joe Simmons-Talbott , Carlos O'Donell , "Joseph S . Myers" Subject: [PATCH v3] math: Add more details to the test driver output. Date: Thu, 16 May 2024 17:49:22 -0400 Message-ID: <20240516214925.3850070-1-josimmon@redhat.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_WEB, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Add start and end indicators that identify the test being run in the verbose output. Better identify the tests for max errors in the summary output. Count each exception checked for each test. Remove double counting of tests for the check_ functions other than check_float_internal. Rename print_max_error and print_complex_max_error to check_max_error and check_complex_max_error respectively since they have side effects. Co-Authored-By: Carlos O'Donell Reviewed-By: Joseph Myers --- Chnages to v2: * Fix gnu style issues: space before '(' Changes to v1: * Also check that the divide-by-zero exception check ran if required. * Only increment noErrnoTests in one place within the actual check. * Rename "builtin" test references to "maxerror". math/libm-test-driver.c | 4 +- math/libm-test-support.c | 203 ++++++++++++++++++++++++++++++--------- math/libm-test-support.h | 4 +- 3 files changed, 162 insertions(+), 49 deletions(-) diff --git a/math/libm-test-driver.c b/math/libm-test-driver.c index 3356f9b10d..dfb56e8cde 100644 --- a/math/libm-test-driver.c +++ b/math/libm-test-driver.c @@ -1083,9 +1083,9 @@ struct test_Ff_b1_data = STR_CON3 (FUN, SUFF, TEST_SUFF) TEST_SUFF_STR; \ init_max_error (this_func, EXACT, TEST_COND_any_ibm128) #define END \ - print_max_error (this_func) + check_max_error (this_func) #define END_COMPLEX \ - print_complex_max_error (this_func) + check_complex_max_error (this_func) /* Run tests for a given function in all rounding modes. */ #define ALL_RM_TEST(FUNC, EXACT, ARRAY, LOOP_MACRO, END_MACRO, ...) \ diff --git a/math/libm-test-support.c b/math/libm-test-support.c index 0cae545f86..0796f9d495 100644 --- a/math/libm-test-support.c +++ b/math/libm-test-support.c @@ -112,6 +112,7 @@ #include #include #include +#include /* This header defines func_ulps, func_real_ulps and func_imag_ulps arrays. */ @@ -125,10 +126,13 @@ static FILE *ulps_file; /* File to document difference. */ static int output_ulps; /* Should ulps printed? */ static char *output_dir; /* Directory where generated files will be written. */ -static int noErrors; /* number of errors */ -static int noTests; /* number of tests (without testing exceptions) */ -static int noExcTests; /* number of tests for exception flags */ -static int noErrnoTests;/* number of tests for errno values */ +#define TEST_INPUT 1 +#define TEST_MAXERROR 2 +static int noErrors; /* number of errors */ +static int noTests; /* number of tests (without testing exceptions) */ +static int noMaxErrorTests; /* number of max error tests */ +static int noExcTests; /* number of tests for exception flags */ +static int noErrnoTests; /* number of tests for errno values */ static unsigned int verbose; static int output_max_error; /* Should the maximal errors printed? */ @@ -299,9 +303,19 @@ print_screen_max_error (int ok) /* Update statistic counters. */ static void -update_stats (int ok) +update_stats (int ok, int testType) { - ++noTests; + switch (testType) + { + case TEST_INPUT: + ++noTests; + break; + case TEST_MAXERROR: + ++noMaxErrorTests; + break; + default: + abort(); + } if (!ok) ++noErrors; } @@ -367,11 +381,30 @@ fpstack_test (const char *test_name) #endif } +static void +print_test_start (int test_num, const char *test_name, int test_type) +{ + if (print_screen (1)) + printf ("--- Start of%s test # %d, named \"%s\" ---\n", + test_type == TEST_MAXERROR ? " max error" : "", test_num, test_name); +} +static void +print_test_end (int test_num, const char *test_name, int test_type) +{ + if (print_screen (1)) + printf ("--- End of%s test # %d, named \"%s\" ---\n", + test_type == TEST_MAXERROR ? " max error" : "", test_num, test_name); +} + +/* This is a builtin test of overall max error. */ void -print_max_error (const char *func_name) +check_max_error (const char *func_name) { int ok = 0; + int thisTest = noMaxErrorTests; + + print_test_start (thisTest, func_name, TEST_MAXERROR); if (max_error == 0.0 || (max_error <= prev_max_error && !ignore_max_ulp)) { @@ -392,14 +425,19 @@ print_max_error (const char *func_name) printf (" accepted: %s ulp\n", pmestr); } - update_stats (ok); -} + update_stats (ok, TEST_MAXERROR); + print_test_end (thisTest, func_name, TEST_MAXERROR); +} +/* This is a builtin test of overall max error. */ void -print_complex_max_error (const char *func_name) +check_complex_max_error (const char *func_name) { int real_ok = 0, imag_ok = 0, ok; + int thisTest = noMaxErrorTests; + + print_test_start (thisTest, func_name, TEST_MAXERROR); if (real_max_error == 0 || (real_max_error <= prev_real_max_error && !ignore_max_ulp)) @@ -436,7 +474,8 @@ print_complex_max_error (const char *func_name) printf (" accepted: %s ulp\n", pimestr); } - update_stats (ok); + update_stats (ok, TEST_MAXERROR); + print_test_end (thisTest, func_name, TEST_MAXERROR); } @@ -477,12 +516,13 @@ test_single_exception (const char *test_name, else { if (print_screen (1)) - printf ("%s: Exception \"%s\" not set\n", test_name, + printf ("Pass: %s: Exception \"%s\" not set\n", test_name, flag_name); } } if (!ok) ++noErrors; + ++noExcTests; } #endif @@ -494,23 +534,32 @@ test_exceptions (const char *test_name, int exception) { if (flag_test_exceptions && EXCEPTION_TESTS (FLOAT)) { - ++noExcTests; + int ran = 0; #ifdef FE_DIVBYZERO if ((exception & DIVIDE_BY_ZERO_EXCEPTION_OK) == 0) - test_single_exception (test_name, exception, - DIVIDE_BY_ZERO_EXCEPTION, FE_DIVBYZERO, - "Divide by zero"); + { + test_single_exception (test_name, exception, + DIVIDE_BY_ZERO_EXCEPTION, FE_DIVBYZERO, + "Divide by zero"); + ran = 1; + } #endif #ifdef FE_INVALID if ((exception & INVALID_EXCEPTION_OK) == 0) - test_single_exception (test_name, exception, - INVALID_EXCEPTION, FE_INVALID, - "Invalid operation"); + { + test_single_exception (test_name, exception, + INVALID_EXCEPTION, FE_INVALID, + "Invalid operation"); + ran = 1; + } #endif #ifdef FE_OVERFLOW if ((exception & OVERFLOW_EXCEPTION_OK) == 0) - test_single_exception (test_name, exception, OVERFLOW_EXCEPTION, - FE_OVERFLOW, "Overflow"); + { + test_single_exception (test_name, exception, OVERFLOW_EXCEPTION, + FE_OVERFLOW, "Overflow"); + ran = 1; + } #endif /* Spurious "underflow" and "inexact" exceptions are always allowed for IBM long double, in line with the underlying @@ -519,17 +568,30 @@ test_exceptions (const char *test_name, int exception) if ((exception & UNDERFLOW_EXCEPTION_OK) == 0 && !(test_ibm128 && (exception & UNDERFLOW_EXCEPTION) == 0)) - test_single_exception (test_name, exception, UNDERFLOW_EXCEPTION, - FE_UNDERFLOW, "Underflow"); + { + test_single_exception (test_name, exception, UNDERFLOW_EXCEPTION, + FE_UNDERFLOW, "Underflow"); + ran = 1; + } + #endif #ifdef FE_INEXACT if ((exception & (INEXACT_EXCEPTION | NO_INEXACT_EXCEPTION)) != 0 && !(test_ibm128 && (exception & NO_INEXACT_EXCEPTION) != 0)) - test_single_exception (test_name, exception, INEXACT_EXCEPTION, - FE_INEXACT, "Inexact"); + { + test_single_exception (test_name, exception, INEXACT_EXCEPTION, + FE_INEXACT, "Inexact"); + ran = 1; + } #endif + assert (ran == 1); } + else + { + if (print_screen (1)) + printf ("Info: %s: No exceptions tested\n", test_name); + } feclearexcept (FE_ALL_EXCEPT); } @@ -552,6 +614,7 @@ test_single_errno (const char *test_name, int errno_value, printf ("Failure: %s: errno set to %d, expected %d (%s)\n", test_name, errno_value, expected_value, expected_name); } + ++noErrnoTests; } /* Test whether errno (value ERRNO_VALUE) has been for TEST_NAME set @@ -561,13 +624,39 @@ test_errno (const char *test_name, int errno_value, int exceptions) { if (flag_test_errno) { - ++noErrnoTests; + int ran = 0; + + if ((exceptions & (ERRNO_UNCHANGED|ERRNO_EDOM|ERRNO_ERANGE)) == 0) + { + if (print_screen (1)) + printf ("Info: %s: The value of errno was not tested\n", + test_name); + return; + } + + if (exceptions & ERRNO_UNCHANGED) - test_single_errno (test_name, errno_value, 0, "unchanged"); + { + test_single_errno (test_name, errno_value, 0, "unchanged"); + ran = 1; + } if (exceptions & ERRNO_EDOM) - test_single_errno (test_name, errno_value, EDOM, "EDOM"); + { + test_single_errno (test_name, errno_value, EDOM, "EDOM"); + ran = 1; + } if (exceptions & ERRNO_ERANGE) - test_single_errno (test_name, errno_value, ERANGE, "ERANGE"); + { + test_single_errno (test_name, errno_value, ERANGE, "ERANGE"); + ran = 1; + } + + assert (ran == 1); + } + else + { + if (print_screen (1)) + printf ("Info: %s: No errno tests\n", test_name); } } @@ -619,6 +708,9 @@ check_float_internal (const char *test_name, FLOAT computed, FLOAT expected, FLOAT diff = 0; FLOAT ulps = 0; int errno_value = errno; + int thisTest = noTests; + + print_test_start (thisTest, test_name, TEST_INPUT); test_exceptions (test_name, exceptions); test_errno (test_name, errno_value, exceptions); @@ -716,12 +808,13 @@ check_float_internal (const char *test_name, FLOAT computed, FLOAT expected, printf (" max.ulp : %s\n", mustrn); } } - update_stats (ok); + update_stats (ok, TEST_INPUT); out: fpstack_test (test_name); feclearexcept (FE_ALL_EXCEPT); errno = 0; + print_test_end (thisTest, test_name, TEST_INPUT); } @@ -776,12 +869,14 @@ check_int (const char *test_name, int computed, int expected, { int ok = 0; int errno_value = errno; + int thisTest = noTests; + + print_test_start (thisTest, test_name, TEST_INPUT); test_exceptions (test_name, exceptions); test_errno (test_name, errno_value, exceptions); if (exceptions & IGNORE_RESULT) goto out; - noTests++; if (computed == expected) ok = 1; @@ -795,11 +890,12 @@ check_int (const char *test_name, int computed, int expected, printf (" should be: %d\n", expected); } - update_stats (ok); + update_stats (ok, TEST_INPUT); out: fpstack_test (test_name); feclearexcept (FE_ALL_EXCEPT); errno = 0; + print_test_end (thisTest, test_name, TEST_INPUT); } @@ -810,12 +906,14 @@ check_long (const char *test_name, long int computed, long int expected, { int ok = 0; int errno_value = errno; + int thisTest = noTests; + + print_test_start (thisTest, test_name, TEST_INPUT); test_exceptions (test_name, exceptions); test_errno (test_name, errno_value, exceptions); if (exceptions & IGNORE_RESULT) goto out; - noTests++; if (computed == expected) ok = 1; @@ -829,11 +927,12 @@ check_long (const char *test_name, long int computed, long int expected, printf (" should be: %ld\n", expected); } - update_stats (ok); + update_stats (ok, TEST_INPUT); out: fpstack_test (test_name); feclearexcept (FE_ALL_EXCEPT); errno = 0; + print_test_end (thisTest, test_name, TEST_INPUT); } @@ -844,12 +943,14 @@ check_bool (const char *test_name, int computed, int expected, { int ok = 0; int errno_value = errno; + int thisTest = noTests; + + print_test_start (thisTest, test_name, TEST_INPUT); test_exceptions (test_name, exceptions); test_errno (test_name, errno_value, exceptions); if (exceptions & IGNORE_RESULT) goto out; - noTests++; if ((computed == 0) == (expected == 0)) ok = 1; @@ -863,11 +964,12 @@ check_bool (const char *test_name, int computed, int expected, printf (" should be: %d\n", expected); } - update_stats (ok); + update_stats (ok, TEST_INPUT); out: fpstack_test (test_name); feclearexcept (FE_ALL_EXCEPT); errno = 0; + print_test_end (thisTest, test_name, TEST_INPUT); } @@ -879,12 +981,14 @@ check_longlong (const char *test_name, long long int computed, { int ok = 0; int errno_value = errno; + int thisTest = noTests; + + print_test_start (thisTest, test_name, TEST_INPUT); test_exceptions (test_name, exceptions); test_errno (test_name, errno_value, exceptions); if (exceptions & IGNORE_RESULT) goto out; - noTests++; if (computed == expected) ok = 1; @@ -898,11 +1002,12 @@ check_longlong (const char *test_name, long long int computed, printf (" should be: %lld\n", expected); } - update_stats (ok); + update_stats (ok, TEST_INPUT); out: fpstack_test (test_name); feclearexcept (FE_ALL_EXCEPT); errno = 0; + print_test_end (thisTest, test_name, TEST_INPUT); } @@ -913,12 +1018,14 @@ check_intmax_t (const char *test_name, intmax_t computed, { int ok = 0; int errno_value = errno; + int thisTest = noTests; + + print_test_start (thisTest, test_name, TEST_INPUT); test_exceptions (test_name, exceptions); test_errno (test_name, errno_value, exceptions); if (exceptions & IGNORE_RESULT) goto out; - noTests++; if (computed == expected) ok = 1; @@ -932,11 +1039,12 @@ check_intmax_t (const char *test_name, intmax_t computed, printf (" should be: %jd\n", expected); } - update_stats (ok); + update_stats (ok, TEST_INPUT); out: fpstack_test (test_name); feclearexcept (FE_ALL_EXCEPT); errno = 0; + print_test_end (thisTest, test_name, TEST_INPUT); } @@ -947,12 +1055,14 @@ check_uintmax_t (const char *test_name, uintmax_t computed, { int ok = 0; int errno_value = errno; + int thisTest = noTests; + + print_test_start (thisTest, test_name, TEST_INPUT); test_exceptions (test_name, exceptions); test_errno (test_name, errno_value, exceptions); if (exceptions & IGNORE_RESULT) goto out; - noTests++; if (computed == expected) ok = 1; @@ -966,11 +1076,12 @@ check_uintmax_t (const char *test_name, uintmax_t computed, printf (" should be: %ju\n", expected); } - update_stats (ok); + update_stats (ok, TEST_INPUT); out: fpstack_test (test_name); feclearexcept (FE_ALL_EXCEPT); errno = 0; + print_test_end (thisTest, test_name, TEST_INPUT); } /* Return whether a test with flags EXCEPTIONS should be run. */ @@ -1211,9 +1322,11 @@ libm_test_finish (void) fclose (ulps_file); printf ("\nTest suite completed:\n"); - printf (" %d test cases plus %d tests for exception flags and\n" - " %d tests for errno executed.\n", - noTests, noExcTests, noErrnoTests); + printf (" %d max error test cases,\n", noMaxErrorTests); + printf (" %d input tests,\n", noTests); + printf (" - with %d tests for exception flags,\n", noExcTests); + printf (" - with %d tests for errno executed.\n", noErrnoTests); + if (noErrors) { printf (" %d errors occurred.\n", noErrors); diff --git a/math/libm-test-support.h b/math/libm-test-support.h index 8baf7e1817..efb9523e9e 100644 --- a/math/libm-test-support.h +++ b/math/libm-test-support.h @@ -170,8 +170,8 @@ extern const char doc[]; int enable_test (int); void init_max_error (const char *, int, int); -void print_max_error (const char *); -void print_complex_max_error (const char *); +void check_max_error (const char *); +void check_complex_max_error (const char *); void check_float (const char *, FLOAT, FLOAT, int); void check_complex (const char *, CFLOAT, CFLOAT, int); void check_int (const char *, int, int, int);