diff options
Diffstat (limited to 'tests/tiff/tiff_dpi.c')
-rw-r--r-- | tests/tiff/tiff_dpi.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/tiff/tiff_dpi.c b/tests/tiff/tiff_dpi.c index 3d4a21a..cdffe6d 100644 --- a/tests/tiff/tiff_dpi.c +++ b/tests/tiff/tiff_dpi.c @@ -31,13 +31,9 @@ int main() src->res_y = res_y; #define OUTPUT_TIFF(name) do { \ - FILE *fp; \ - \ - fp = fopen("tiff_dpi_" #name ".tiff", "wb"); \ - if (fp) { \ - gdImageTiff(name, fp); \ - fclose(fp); \ - } \ + FILE *fp = gdTestTempFp(); \ + gdImageTiff(name, fp); \ + fclose(fp); \ } while (0) OUTPUT_TIFF(src); |