[gegl] tests/buffer: Remove temporary file after test
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] tests/buffer: Remove temporary file after test
- Date: Tue, 8 Feb 2011 22:02:38 +0000 (UTC)
commit dac21927327b0d289e864d70eb29a02e87bee26e
Author: Martin Nordholts <martinn src gnome org>
Date: Tue Feb 8 23:04:36 2011 +0100
tests/buffer: Remove temporary file after test
Remove "/tmp/gegl-buffer-tmp.gegl" after 'save_small_roi' is done so
that make distcheck as another user like a buildbot doesn't fail with
GLib-GIO-CRITICAL **: g_output_stream_write: assertion `G_IS_OUTPUT_STREAM (stream)' failed **
ERROR:gegl-buffer-save.c:346:gegl_buffer_save: assertion failed: (info->offset == info->header.next)
tests/buffer/buffer-test.c | 1 +
tests/buffer/tests/save_small_roi.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/buffer/buffer-test.c b/tests/buffer/buffer-test.c
index d9f8dac..3c1fbfc 100644
--- a/tests/buffer/buffer-test.c
+++ b/tests/buffer/buffer-test.c
@@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <glib/gmacros.h>
+#include <glib/gstdio.h>
/* This file consists of a testing suite for the GeglBuffer API. For every
* function matching the regexp ^static.*(' in the file a test is performed and
diff --git a/tests/buffer/tests/save_small_roi.c b/tests/buffer/tests/save_small_roi.c
index e1c72e3..42e1ce5 100644
--- a/tests/buffer/tests/save_small_roi.c
+++ b/tests/buffer/tests/save_small_roi.c
@@ -26,6 +26,7 @@ TEST ()
gegl_buffer_destroy (buffer);
buffer = NULL;
+ g_unlink (path);
g_free (path);
test_end ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]