3 * Copyright (C) 2011 Red Hat, Inc
4 * Author: Matthias Clasen
6 * This work is provided "as is"; redistribution and modification
7 * in whole or in part, in any medium, physical or electronic is
8 * permitted without restriction.
10 * This work is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * In no event shall the authors or contributors be liable for any
15 * direct, indirect, incidental, special, exemplary, or consequential
16 * damages (including, but not limited to, procurement of substitute
17 * goods or services; loss of use, data, or profits; or business
18 * interruption) however caused and on any theory of liability, whether
19 * in contract, strict liability, or tort (including negligence or
20 * otherwise) arising in any way out of the use of this software, even
21 * if advised of the possibility of such damage.
33 vfs = g_vfs_get_local ();
34 g_assert (g_vfs_is_active (vfs));
36 file = g_vfs_get_file_for_uri (vfs, "not a good uri");
37 g_assert (G_IS_FILE (file));
38 g_object_unref (file);
40 schemes = (gchar **)g_vfs_get_supported_uri_schemes (vfs);
42 g_assert (g_strv_length (schemes) > 0);
43 g_assert_cmpstr (schemes[0], ==, "file");
47 main (int argc, char *argv[])
49 g_test_init (&argc, &argv, NULL);
51 g_test_add_func ("/gvfs/local", test_local);