-
Notifications
You must be signed in to change notification settings - Fork 612
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: do not use 'tail' for skip-file-rwx-check test
Newer versions of 'tail' rely on inotify and after a restore 'tail' is unhappy with the state of inotify and just stops. This replaces 'tail' with a minimal test in C which just keeps a file open to still be able to test how CRIU reacts if the file mode has changed. Signed-off-by: Adrian Reber <[email protected]>
- Loading branch information
1 parent
9d3e71a
commit 2b8fe1e
Showing
4 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
dump.log | ||
restore-expected-fail.log | ||
restore.log | ||
stats-dump | ||
stats-restore | ||
tester | ||
testfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
.PHONY: run clean | ||
|
||
run: | ||
tester: tester.c | ||
$(CC) -Wall $< -o $@ | ||
|
||
run: tester | ||
./run.sh | ||
|
||
clean: | ||
rm -rf testfile *.img dump.log restore-expected-fail.log restore.log stats-dump stats-restore | ||
rm -rf testfile *.img dump.log restore-expected-fail.log restore.log stats-dump stats-restore tester |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include <fcntl.h> | ||
#include <unistd.h> | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
open(argv[1], O_RDONLY | O_APPEND); | ||
|
||
while(1) | ||
Check warning on line 8 in test/others/skip-file-rwx-check/tester.c GitHub Actions / build
|
||
sleep(1); | ||
} |