Don't use raw divisions by zero in `test-conversion.c'.
authorLudovic Courtès <ludo@gnu.org>
Thu, 23 Apr 2009 21:20:59 +0000 (23:20 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 20 May 2009 22:12:04 +0000 (00:12 +0200)
commite2e85d14065d0ec417570bf398dc19ab87ff366f
tree49108f409bd7364b71dbb64b2c707aa947889633
parent66818dbb710c83730310c15088f1784d61158f04
Don't use raw divisions by zero in `test-conversion.c'.

* test-suite/standalone/test-conversion.c (ieee_init): New function.
  (guile_Inf, guile_NaN): New variables.
  (test_from_double, test_to_double): Use them.  Divisions by zero made
  `cc' on Tru64 5.1b ("Compaq C V6.5-011") bail out and led to a
  floating point exception when compiled with GCC on the same platform.
  (main): Call `ieee_init ()'.
test-suite/standalone/test-conversion.c