This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Disable libm-test errno testing for TEST_INLINE


Just as libm-test.inc inline function testing disables testing of
exceptions, so it should also disable testing of errno setting, which
this patch does.  Tested x86_64 and x86.

2013-05-14  Joseph Myers  <joseph@codesourcery.com>

	* math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
	function contents.

diff --git a/math/libm-test.inc b/math/libm-test.inc
index 1a0dc52..a91c020 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -560,6 +560,7 @@ static void
 test_single_errno (const char *test_name, int errno_value,
 		   int expected_value, const char *expected_name)
 {
+#ifndef TEST_INLINE
   if (errno_value == expected_value)
     {
       if (print_screen (1))
@@ -573,6 +574,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);
     }
+#endif
 }
 
 /* Test whether errno (value ERRNO_VALUE) has been for TEST_NAME set

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]