Imported Upstream version 0.1.2
[platform/upstream/snapper.git] / testsuite-real / error2.cc
1
2 #include <stdlib.h>
3 #include <iostream>
4
5 #include "common.h"
6
7 using namespace std;
8
9
10 int
11 main()
12 {
13     setup();
14
15     run_command("touch not-here");
16
17     first_snapshot();
18
19     run_command("chmod a+rxw not-here");
20     run_command("chown nobody not-here");
21
22     second_snapshot();
23
24     run_command("rm not-here");
25
26     check_undo_statistics(0, 1, 0);
27
28     undo();
29
30     check_undo_errors(0, 1, 0);
31
32     cleanup();
33
34     exit(EXIT_SUCCESS);
35 }