about summary refs log tree commit diff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rwxr-xr-xmath/gen-libm-test.pl2
-rw-r--r--math/libm-test.inc6
2 files changed, 4 insertions, 4 deletions
diff --git a/math/gen-libm-test.pl b/math/gen-libm-test.pl
index 275ba7beaa..7a8c518d3e 100755
--- a/math/gen-libm-test.pl
+++ b/math/gen-libm-test.pl
@@ -79,7 +79,7 @@ $ulps_file = 'libm-test-ulps';
 $output_dir = '';
 
 if ($opt_h) {
-  print "Usage: generate.pl [OPTIONS]\n";
+  print "Usage: gen-libm-test.pl [OPTIONS]\n";
   print " -h         print this help, then exit\n";
   print " -o DIR     directory where generated files will be placed\n";
   print " -n         generate sorted file NewUlps from libm-test-ulps\n";
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 02b2f985cb..786fc9c5af 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -466,7 +466,7 @@ check_complex (const char *test_name, FLOAT __complex__ computed,
   part_exp = __real__ expected;
   check_float (str, part_comp, part_exp, max_ulp, xfail, exception);
 
-  sprintf (str, "Complex part of: %s", test_name);
+  sprintf (str, "Imaginary part of: %s", test_name);
   part_comp = __imag__ computed;
   part_exp = __imag__ expected;
   /* Don't check again for exceptions, just pass through the
@@ -2384,13 +2384,13 @@ gamma_test (void)
   TEST_f_f (gamma, plus_infty, plus_infty);
   TEST_f_f (gamma, 0, plus_infty, DIVIDE_BY_ZERO_EXCEPTION);
   TEST_f_f (gamma, -3, plus_infty, DIVIDE_BY_ZERO_EXCEPTION);
-  TEST_f_f (gamma, minus_infty, nan_value, INVALID_EXCEPTION);
+  TEST_f_f (gamma, minus_infty, plus_infty);
 
   TEST_f_f1 (gamma, 1, 0, 1);
   TEST_f_f1 (gamma, 3, M_LN2l, 1);
 
   TEST_f_f1 (gamma, 0.5, M_LOG_SQRT_PIl, 1);
-  TEST_f_f1 (gamma, -0.5, M_LOG_2_SQRT_PIl,-1);
+  TEST_f_f1 (gamma, -0.5, M_LOG_2_SQRT_PIl, -1);
 
   END (gamma);
 }