Add a filename return test.
authorJohan Dahlin <jdahlin@async.com.br>
Wed, 12 Nov 2008 14:17:07 +0000 (14:17 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Wed, 12 Nov 2008 14:17:07 +0000 (14:17 +0000)
2008-11-12  Johan Dahlin  <jdahlin@async.com.br>

    * tests/everything/gitesttypes.c (test_filename_return):
    * tests/everything/gitesttypes.h:
    Add a filename return test.

svn path=/trunk/; revision=897

ChangeLog
tests/everything/gitesttypes.c
tests/everything/gitesttypes.h

index 4dd551a..5f9ed8a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-11-12  Johan Dahlin  <jdahlin@async.com.br>
+
+       * tests/everything/gitesttypes.c (test_filename_return):
+       * tests/everything/gitesttypes.h:
+       Add a filename return test.
+
 2008-11-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
 
        * tests/offsets/Makefile.am (gitestoffsets.c): fix
index 940e445..4a0086d 100644 (file)
@@ -110,7 +110,7 @@ G_CONST_RETURN char *test_utf8_const_return (void)
   return utf8_const;
 }
 
-/** test_utf8_nonconst_return:
+/** test_utf8_nonconst_return:8
  * Return value: <char*> UTF-8 string
  */
 char *test_utf8_nonconst_return (void)
@@ -140,7 +140,18 @@ void test_utf8_inout (char **inout)
 }
 #endif
 
-/* filename? */
+/**
+ * test_filename_return:
+ *
+ * Return value: (element-type filename) (transfer none): list of strings
+ */
+GSList *test_filename_return (void)
+{
+  GSList *filenames = NULL;
+  filenames = g_slist_prepend (filenames, "/etc/fstab");
+  return filenames;
+}
+
 /* non-basic-types */
 
 static const char *test_sequence[] = {"1", "2", "3"};
index 227f19b..be57506 100644 (file)
@@ -32,7 +32,7 @@ void test_utf8_const_in (const char *in);
 void test_utf8_out (char **out);
 void test_utf8_inout (char **inout);
 #endif
-/* filename? */
+GSList *test_filename_return (void);
 /* non-basic-types */
 /* array */
 gboolean test_strv_in (char **arr);