diff options
author | Colin Walters <walters@verbum.org> | 2014-12-17 16:07:57 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2014-12-17 16:11:26 -0500 |
commit | 12085b6e39c9b43ba50a6030e58b5a4380b41a48 (patch) | |
tree | 2350ec364aae189d7915b9081fb60ab241f9c65e /tests/shutil.c | |
parent | d372ec1b0435492713b7f33f5dd98dba12acadd4 (diff) | |
download | libgsystem-12085b6e39c9b43ba50a6030e58b5a4380b41a48.tar.gz |
Import test infrastructure from json-glib, add a test case
Diffstat (limited to 'tests/shutil.c')
-rw-r--r-- | tests/shutil.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/shutil.c b/tests/shutil.c new file mode 100644 index 0000000..6461ede --- /dev/null +++ b/tests/shutil.c @@ -0,0 +1,26 @@ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +#include <libgsystem.h> + +static void +test_shutil_rm_rf_noent (void) +{ + GError *error = NULL; + GFile *noent = g_file_new_for_path ("noent"); + + (void) gs_shutil_rm_rf (noent, NULL, &error); + g_assert_no_error (error); +} + +int +main (int argc, + char *argv[]) +{ + g_test_init (&argc, &argv, NULL); + + g_test_add_func ("/shutil/rmrf-noent", test_shutil_rm_rf_noent); + + return g_test_run (); +} |