[rygel/rygel-0-12] test: Remove temporary file on start-up
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/rygel-0-12] test: Remove temporary file on start-up
- Date: Sat, 22 Oct 2011 05:37:18 +0000 (UTC)
commit b3339aae8b9de13ad3b246f22b8bb6fdcfec921b
Author: Jens Georg <mail jensge org>
Date: Wed Oct 19 10:00:16 2011 +0200
test: Remove temporary file on start-up
tests/rygel-http-post-test.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/rygel-http-post-test.vala b/tests/rygel-http-post-test.vala
index 57c8b4d..6f81b89 100644
--- a/tests/rygel-http-post-test.vala
+++ b/tests/rygel-http-post-test.vala
@@ -64,6 +64,9 @@ public class Rygel.HTTPPostTest : GLib.Object {
}
public virtual void run () throws Error {
+ // cleanup
+ var file = File.new_for_uri (MediaItem.URI);
+ FileUtils.remove (file.get_path ());
Timeout.add_seconds (3, this.on_timeout);
this.server.message_received.connect (this.on_message_received);
this.client.completed.connect (this.on_client_completed);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]