[file-roller] test-server: separate the tests each one inside a #if #endif block



commit ebd293cd98800d436ee8b0959c8d457faa4e907c
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Jun 19 11:33:30 2012 +0200

    test-server: separate the tests each one inside a #if #endif block

 src/test-server.c |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/src/test-server.c b/src/test-server.c
index 3a10f1e..726844b 100644
--- a/src/test-server.c
+++ b/src/test-server.c
@@ -161,7 +161,7 @@ main (int argc, char *argv[])
 			                  G_CALLBACK (on_signal),
 			                  NULL);
 
-#if 0
+#if 1
 			/* -- GetSupportedTypes -- */
 
 			g_dbus_proxy_call (proxy,
@@ -174,14 +174,15 @@ main (int argc, char *argv[])
 					   NULL);
 #endif
 
+#if 0
 			/* -- AddToArchive -- */
 
 			char  *archive;
 			char **files;
 
-			archive = g_strdup ("file:///home/paolo/Scrivania/firefox-4.0b8pre.tar.gz");
+			archive = g_strdup ("file:///home/paolo/Scrivania/test.tar.gz");
 			files = g_new0 (char *, 2);
-			files[0] = g_strdup ("file:///home/paolo/Scrivania/firefox-4.0b8pre");
+			files[0] = g_strdup ("file:///home/paolo/Scrivania/test");
 			files[1] = NULL;
 
 			g_dbus_proxy_call (proxy,
@@ -198,6 +199,7 @@ main (int argc, char *argv[])
 
 			g_free (archive);
 			g_strfreev (files);
+#endif
 
 #if 0
 
@@ -207,7 +209,7 @@ main (int argc, char *argv[])
 			char  *destination;
 
 			files = g_new0 (char *, 2);
-			files[0] = g_strdup ("file:///home/paolo/Scrivania/firefox-4.0b8pre");
+			files[0] = g_strdup ("file:///home/paolo/Scrivania/test");
 			files[1] = NULL;
 			destination = g_strdup ("file:///home/paolo/Scrivania");
 
@@ -226,6 +228,10 @@ main (int argc, char *argv[])
 			g_strfreev (files);
 			g_free (destination);
 
+#endif
+
+#if 0
+
 			/* -- Extract -- */
 
 			g_dbus_proxy_call (proxy,
@@ -240,6 +246,10 @@ main (int argc, char *argv[])
 					   fileroller_addtoarchive_ready_cb,
 					   NULL);
 
+#endif
+
+#if 0
+
 			/* -- ExtractHere -- */
 
 			g_dbus_proxy_call (proxy,



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