diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-05-06 20:23:40 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-05-06 20:23:40 +0000 |
commit | 9ea3513c917e04ba6cb4a6ce0b9d455f566a1d3f (patch) | |
tree | 7fa7b179103d22273e1fc8a61c39534e9811ff1b /math/gen-libm-test.pl | |
parent | 5bf96de5ef97cd0d6c04445feec6b25e07d4d938 (diff) | |
download | glibc-9ea3513c917e04ba6cb4a6ce0b9d455f566a1d3f.tar.gz glibc-9ea3513c917e04ba6cb4a6ce0b9d455f566a1d3f.tar.xz glibc-9ea3513c917e04ba6cb4a6ce0b9d455f566a1d3f.zip |
Initialize x in frexp, modf, remqou tests.
Diffstat (limited to 'math/gen-libm-test.pl')
-rwxr-xr-x | math/gen-libm-test.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/math/gen-libm-test.pl b/math/gen-libm-test.pl index a743797fca..2f9389898a 100755 --- a/math/gen-libm-test.pl +++ b/math/gen-libm-test.pl @@ -366,6 +366,7 @@ sub parse_args { # special treatment for some functions if ($args[0] eq 'frexp') { + $pre = " x = 123456789;\n"; if (defined $special[0] && $special[0] ne "IGNORE") { my ($str) = "$call sets x to $special[0]"; $post = " check_int (\"$str\", x, $special[0]"; @@ -379,12 +380,14 @@ sub parse_args { $post .= &new_test ($str, undef); } } elsif ($args[0] eq 'modf') { + $pre = " x = 123.456789;\n"; if (defined $special[0] && $special[0] ne "IGNORE") { my ($str) = "$call sets x to $special[0]"; $post = " check_float (\"$str\", x, $special[0]"; $post .= &new_test ($str, undef); } } elsif ($args[0] eq 'remquo') { + $pre = " x = 123456789;\n"; if (defined $special[0] && $special[0] ne "IGNORE") { my ($str) = "$call sets x to $special[0]"; $post = " check_int (\"$str\", x, $special[0]"; |