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

36 lines
469 B
C++

#include "common.h"
using namespace std;
int
main()
{
setup();
run_command("mkdir --mode a=rwx directory");
run_command("echo test > file");
run_command("chmod a=rwx file");
first_snapshot();
run_command("chmod a=--- directory");
run_command("chmod a=--- file");
second_snapshot();
check_undo_statistics(0, 2, 0);
undo();
check_undo_errors(0, 0, 0);
check_first();
cleanup();
exit(EXIT_SUCCESS);
}