From b25303cc3b54e84eac6f051bb43a952bbb91a7fa Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 27 Sep 2013 15:23:49 +0200 Subject: move tp_tests_copy_dir() to logger-test-helper This function is logger specific so best to have it in this file. Makes syncing with tp-glib easier. --- tests/lib/util.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'tests/lib/util.c') diff --git a/tests/lib/util.c b/tests/lib/util.c index 8d5a7ea..6fd7b1b 100644 --- a/tests/lib/util.c +++ b/tests/lib/util.c @@ -498,23 +498,3 @@ tp_tests_connection_run_until_contact_by_id (TpConnection *connection, return contact; } - -void -tp_tests_copy_dir (const gchar *from_dir, const gchar *to_dir) -{ - gchar *command; - - // If destination directory exist erase it - command = g_strdup_printf ("rm -rf %s", to_dir); - g_assert (system (command) == 0); - g_free (command); - - command = g_strdup_printf ("cp -r %s %s", from_dir, to_dir); - g_assert (system (command) == 0); - g_free (command); - - // In distcheck mode the files and directory are read-only, fix that - command = g_strdup_printf ("chmod -R +w %s", to_dir); - g_assert (system (command) == 0); - g_free (command); -} -- cgit v1.2.1