diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-12-06 22:02:45 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-12-06 22:02:45 +0100 |
commit | f893b5895d3807660a5f652979ba948d35e6c8fc (patch) | |
tree | 07eef79220a30a4172eda0a4eb17ffc367f8a887 | |
parent | 55b4a6a92c8610ca0f6ae9f1436ab722e16b3c7f (diff) | |
download | gmp-f893b5895d3807660a5f652979ba948d35e6c8fc.tar.gz |
* tests/misc/t-locale.c, tests/cxx/t-locale.cc: Ensure mpf_clear is
done when the localconv overridde doesn't work.
-rw-r--r-- | tests/cxx/t-locale.cc | 2 | ||||
-rw-r--r-- | tests/misc/t-locale.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/cxx/t-locale.cc b/tests/cxx/t-locale.cc index 19a5be21b..c3cd4b546 100644 --- a/tests/cxx/t-locale.cc +++ b/tests/cxx/t-locale.cc @@ -130,12 +130,12 @@ main (void) mpf_set_d (f, 1.5); ostrstream got; got << f << '\0'; + mpf_clear (f); if (strcmp (got.str(), "1,5") != 0) { printf ("Test skipped, replacing localeconv doesn't work\n"); goto done; } - mpf_clear (f); } check_input (); diff --git a/tests/misc/t-locale.c b/tests/misc/t-locale.c index c3f407086..f7b758a1b 100644 --- a/tests/misc/t-locale.c +++ b/tests/misc/t-locale.c @@ -151,12 +151,12 @@ main (void) decimal_point = ","; mpf_set_d (f, 1.5); gmp_snprintf (buf, sizeof(buf), "%.1Ff", f); + mpf_clear (f); if (strcmp (buf, "1,5") != 0) { printf ("Test skipped, replacing localeconv doesn't work\n"); goto done; } - mpf_clear (f); } check_input (); |