summaryrefslogtreecommitdiff
path: root/tests/shutil.c
blob: 6461ededda91b6dcfba9ac61465be0afd2c98fac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 ();
}