[gnome-keyring] egg: Don't crash tests if test directory was removed



commit 55e0b1a607bec29b5c0711741765250742c79666
Author: Stef Walter <stefw gnome org>
Date:   Wed Apr 8 14:07:44 2015 +0200

    egg: Don't crash tests if test directory was removed
    
    It's okay if the directory is gone, it may have been
    removed by a test.

 egg/egg-testing.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/egg/egg-testing.c b/egg/egg-testing.c
index 0db594e..52f8290 100644
--- a/egg/egg-testing.c
+++ b/egg/egg-testing.c
@@ -285,7 +285,7 @@ egg_tests_create_scratch_directory (const gchar *file_to_copy,
 void
 egg_tests_remove_scratch_directory (const gchar *directory)
 {
-       gchar *argv[] = { "rm", "-r", (gchar *)directory, NULL };
+       gchar *argv[] = { "rm", "-rf", (gchar *)directory, NULL };
        GError *error = NULL;
        gint rm_status;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]