File: error2.cc

package info (click to toggle)
snapper 0.10.6-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,072 kB
  • sloc: cpp: 24,846; ansic: 1,466; sh: 1,410; makefile: 514; python: 127; ruby: 90
file content (32 lines) | stat: -rw-r--r-- 397 bytes parent folder | download | duplicates (6)
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
27
28
29
30
31
32

#include "common.h"

using namespace std;


int
main()
{
    setup();

    run_command("touch not-here");

    first_snapshot();

    run_command("chmod a+rxw not-here");
    run_command("chown nobody not-here");

    second_snapshot();

    run_command("rm not-here");

    check_undo_statistics(0, 1, 0);

    undo();

    check_undo_errors(0, 1, 0);

    cleanup();

    exit(EXIT_SUCCESS);
}