summaryrefslogtreecommitdiff
path: root/tests/toutimpl.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/toutimpl.c')
-rw-r--r--tests/toutimpl.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/toutimpl.c b/tests/toutimpl.c
index f683330df..59074974f 100644
--- a/tests/toutimpl.c
+++ b/tests/toutimpl.c
@@ -24,10 +24,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
#include <stdlib.h>
#include "mpfr-test.h"
-/* We output stdout to a file to check if it is correct
- Is it a good idea?
- We can't use tmpname since it is insecure */
-#define FILE_NAME "dummy.tmp"
+#define FILE_NAME "toutimpl_out.txt"
static const char Buffer[] =
"@NaN@\n"
@@ -72,8 +69,7 @@ main (void)
exit (1);
}
- /* Reopen stdout to a file. All errors will be put to stderr
- Can't use tmpname since it is unsecure */
+ /* Reopen stdout to a file. All errors will be put to stderr. */
if (freopen (FILE_NAME, "w", stdout) == NULL)
{
printf ("Error can't redirect stdout\n");