1
0
mirror of https://github.com/openSUSE/snapper.git synced 2026-02-05 15:46:00 +01:00
Files
snapper/testsuite-real/simple1.cc
2013-06-25 17:46:35 +02:00

40 lines
632 B
C++

#include "common.h"
using namespace std;
int
main()
{
setup();
run_command("mkdir directory-pre");
run_command("echo test > file-pre");
run_command("ln --symbolic test link-pre");
first_snapshot();
run_command("rmdir directory-pre");
run_command("rm file-pre");
run_command("rm link-pre");
run_command("mkdir directory-post");
run_command("echo test > file-post");
run_command("ln --symbolic test link-post");
second_snapshot();
check_undo_statistics(3, 0, 3);
undo();
check_undo_errors(0, 0, 0);
check_first();
cleanup();
exit(EXIT_SUCCESS);
}