grim/gplate

70ea9bf0dd49
Parents 56ff99cc8799
Children 16faa6c238ef
hit another line via unit tests (yes just one more line...)
--- a/tests/test-file-variable.c Mon Mar 09 02:54:18 2009 -0500
+++ b/tests/test-file-variable.c Mon Mar 09 05:07:54 2009 -0500
@@ -133,6 +133,17 @@
g_free(filename);
END_TEST
+START_TEST(test_file_does_not_exist)
+ const gchar *filename = "non-existant file";
+
+ file = gplate_file_variable_new("file", filename);
+
+ fail_unless(file != NULL,
+ "We should not have been able to create a GPlateFileVariable "
+ "instance for '%s'\n",
+ filename);
+END_TEST
+
/******************************************************************************
* API
*****************************************************************************/
@@ -159,6 +170,7 @@
tcase_add_checked_fixture(tc, NULL, common_teardown);
tcase_add_test(tc, test_file_normal);
+ tcase_add_test(tc, test_file_does_not_exist);
suite_add_tcase(s, tc);