[tracker] tests: Do not remove temporary data asynchronously
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tests: Do not remove temporary data asynchronously
- Date: Tue, 25 May 2010 13:32:34 +0000 (UTC)
commit c58e81673e66ae11778ffa724c8bb58aa4f541d2
Author: Jürg Billeter <j bitron ch>
Date: Tue May 25 15:17:48 2010 +0200
tests: Do not remove temporary data asynchronously
Removing temporary data asynchronously can lead to race conditions.
tests/libtracker-data/tracker-backup-test.c | 2 +-
tests/libtracker-data/tracker-ontology-test.c | 4 ++--
tests/libtracker-data/tracker-sparql-blank-test.c | 2 +-
tests/libtracker-data/tracker-sparql-test.c | 2 +-
tests/libtracker-fts/tracker-fts-test.c | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/tests/libtracker-data/tracker-backup-test.c b/tests/libtracker-data/tracker-backup-test.c
index d5e3a2a..510aba5 100644
--- a/tests/libtracker-data/tracker-backup-test.c
+++ b/tests/libtracker-data/tracker-backup-test.c
@@ -220,7 +220,7 @@ main (int argc, char **argv)
/* clean up */
g_print ("Removing temporary data\n");
- g_spawn_command_line_async ("rm -R tracker/", NULL);
+ g_spawn_command_line_sync ("rm -R tracker/", NULL, NULL, NULL, NULL);
return result;
}
diff --git a/tests/libtracker-data/tracker-ontology-test.c b/tests/libtracker-data/tracker-ontology-test.c
index 44da5ca..2cafdc2 100644
--- a/tests/libtracker-data/tracker-ontology-test.c
+++ b/tests/libtracker-data/tracker-ontology-test.c
@@ -453,8 +453,8 @@ main (int argc, char **argv)
/* clean up */
g_print ("Removing temporary data\n");
- g_spawn_command_line_async ("rm -R tracker/", NULL);
- g_spawn_command_line_async ("rm -R test-cache/", NULL);
+ g_spawn_command_line_sync ("rm -R tracker/", NULL, NULL, NULL, NULL);
+ g_spawn_command_line_sync ("rm -R test-cache/", NULL, NULL, NULL, NULL);
g_free (data_dir);
diff --git a/tests/libtracker-data/tracker-sparql-blank-test.c b/tests/libtracker-data/tracker-sparql-blank-test.c
index 5b2f9b7..3d6c9c2 100644
--- a/tests/libtracker-data/tracker-sparql-blank-test.c
+++ b/tests/libtracker-data/tracker-sparql-blank-test.c
@@ -115,7 +115,7 @@ main (int argc, char **argv)
/* clean up */
g_print ("Removing temporary data\n");
- g_spawn_command_line_async ("rm -R tracker/", NULL);
+ g_spawn_command_line_sync ("rm -R tracker/", NULL, NULL, NULL, NULL);
return result;
}
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index a4ec5a7..af788b2 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -351,7 +351,7 @@ main (int argc, char **argv)
/* clean up */
g_print ("Removing temporary data\n");
- g_spawn_command_line_async ("rm -R tracker/", NULL);
+ g_spawn_command_line_sync ("rm -R tracker/", NULL, NULL, NULL, NULL);
return result;
}
diff --git a/tests/libtracker-fts/tracker-fts-test.c b/tests/libtracker-fts/tracker-fts-test.c
index 84ec1fa..d8686e5 100644
--- a/tests/libtracker-fts/tracker-fts-test.c
+++ b/tests/libtracker-fts/tracker-fts-test.c
@@ -227,7 +227,7 @@ main (int argc, char **argv)
/* clean up */
g_print ("Removing temporary data\n");
- g_spawn_command_line_async ("rm -R tracker/", NULL);
+ g_spawn_command_line_sync ("rm -R tracker/", NULL, NULL, NULL, NULL);
return result;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]