[Xfce4-commits] <exo:nick/remove-exo-mount-point> Remove the exo-mount-point test.
Nick Schermer
noreply at xfce.org
Fri Oct 23 14:38:06 CEST 2009
Updating branch refs/heads/nick/remove-exo-mount-point
to e15d28dade90b674697fe63120a51db2e3b87498 (commit)
from 05c67cf3895662f74570b25ac020880133f4bace (commit)
commit e15d28dade90b674697fe63120a51db2e3b87498
Author: Nick Schermer <nick at xfce.org>
Date: Fri Oct 23 14:24:49 2009 +0200
Remove the exo-mount-point test.
tests/Makefile.am | 15 -------
tests/test-exo-mount-point.c | 86 ------------------------------------------
2 files changed, 0 insertions(+), 101 deletions(-)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 74f8488..8992a79 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -9,13 +9,11 @@ INCLUDES = \
TESTS = \
test-exo-csource \
- test-exo-mount-point \
test-exo-noop \
test-exo-string
check_PROGRAMS = \
test-exo-csource \
- test-exo-mount-point \
test-exo-noop \
test-exo-string
@@ -29,19 +27,6 @@ test_exo_csource_CFLAGS = \
test_exo_csource_LDADD = \
$(GLIB_LIBS)
-test_exo_mount_point_SOURCES = \
- test-exo-mount-point.c
-
-test_exo_mount_point_CFLAGS = \
- $(GTK_CFLAGS) \
- $(LIBXFCE4UTIL_CFLAGS)
-
-test_exo_mount_point_DEPENDENCIES = \
- $(top_builddir)/exo/libexo-$(LIBEXO_VERSION_API).la
-
-test_exo_mount_point_LDADD = \
- $(top_builddir)/exo/libexo-$(LIBEXO_VERSION_API).la
-
test_exo_noop_SOURCES = \
test-exo-noop.c
diff --git a/tests/test-exo-mount-point.c b/tests/test-exo-mount-point.c
deleted file mode 100644
index 1b2e931..0000000
--- a/tests/test-exo-mount-point.c
+++ /dev/null
@@ -1,86 +0,0 @@
-/* $Id$ */
-/*-
- * Copyright (c) 2007 Benedikt Meurer <benny at xfce.org>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include <exo/exo.h>
-
-
-
-static void
-print_mount_point (const ExoMountPoint *mount_point)
-{
- g_print (" - %s\t%s\t%s", mount_point->device, mount_point->folder, mount_point->fstype);
- if ((mount_point->flags & EXO_MOUNT_POINT_READ_ONLY) != 0)
- g_print (" (ro)");
- g_print ("\n");
-}
-
-
-
-int
-main (int argc, char **argv)
-{
- GError *err = NULL;
- GSList *mount_points;
- GSList *lp;
-
- mount_points = exo_mount_point_list_active (&err);
- if (G_UNLIKELY (err != NULL))
- {
- g_printerr ("Failed to query active mount points: %s\n", err->message);
- g_error_free (err);
- return EXIT_FAILURE;
- }
- g_print ("Active mount points:\n--------------------\n");
- for (lp = mount_points; lp != NULL; lp = lp->next)
- {
- print_mount_point (lp->data);
- exo_mount_point_free (lp->data);
- }
- g_slist_free (mount_points);
- g_print ("\n");
-
- mount_points = exo_mount_point_list_configured (&err);
- if (G_UNLIKELY (err != NULL))
- {
- g_printerr ("Failed to query configured mount points: %s\n", err->message);
- g_error_free (err);
- return EXIT_FAILURE;
- }
- g_print ("Configured mount points:\n------------------------\n");
- for (lp = mount_points; lp != NULL; lp = lp->next)
- {
- print_mount_point (lp->data);
- exo_mount_point_free (lp->data);
- }
- g_slist_free (mount_points);
- g_print ("\n");
-
- return EXIT_SUCCESS;
-}
-
-
More information about the Xfce4-commits
mailing list