bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in gmp-4.0 test suite


From: Mike Jetzer
Subject: bug in gmp-4.0 test suite
Date: Thu, 6 Dec 2001 07:49:38 -0600

tests/misc/t-locale.c has a small bug where if you cannot replace
localeconv()
(as is the case under AIX 4.3.3), mpf_clear() is not called, so
tests_memory_end() reports "1 blocks remaining" and performs the abort.

This can be solved by adding an mpf_clear(f) immediately before the "goto
done"
statement:
*** tests/misc/t-locale.c       Thu Dec  6 07:41:58 2001
--- /tmp/t-locale.c--new        Wed Dec  5 15:22:54 2001
***************
*** 154,159 ****
--- 154,160 ----
      if (strcmp (buf, "1,5") != 0)
        {
          printf ("Test skipped, replacing localeconv doesn't work\n");
+         mpf_clear (f);
          goto done;
        }
      mpf_clear (f);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]