Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPavel Tikhomirov <ptikhomirov@virtuozzo.com>2019-08-26 18:19:23 +0300
committerAndrei Vagin <avagin@gmail.com>2019-09-07 15:59:56 +0300
commit5ff4fcb753c566f1c40a1973e8c68a270c3b515b (patch)
tree1b90d2cfc7c88523cfb0038a3bc47a2005d2f346 /test
parentbbd922ed32ece54830380abe7706c111203f1774 (diff)
zdtm: make inotify04 require restore
After adding the test for fake inotify events cleanup on restore, we've detected that we also have the same problem on dump/predump, criu touches files that are watched and generates fake events: [root@snorch criu]# test/zdtm.py run -t zdtm/static/inotify04 --norst -k always === Run 1/1 ================ zdtm/static/inotify04 ======================== Run zdtm/static/inotify04 in h ======================== Start test ./inotify04 --pidfile=inotify04.pid --outfile=inotify04.out --dirname=inotify04.test Run criu dump =[log]=> dump/zdtm/static/inotify04/36/1/dump.log ------------------------ grep Error ------------------------ (00.004050) fsnotify: openable (inode match) as home/snorch/devel/criu/test/zdtm/static/inotify04.test/inotify-testfile (00.004052) fsnotify: Dumping /home/snorch/devel/criu/test/zdtm/static/inotify04.test/inotify-testfile as path for handle (00.004055) fsnotify: id 0x000007 flags 0x000800 (00.004071) 36 fdinfo 5: pos: 0 flags: 4000/0 (00.004080) Warn (criu/fsnotify.c:336): fsnotify: The 0x000008 inotify events will be dropped ------------------------ ERROR OVER ------------------------ Send the 15 signal to 36 Wait for zdtm/static/inotify04(36) to die for 0.100000 ############### Test zdtm/static/inotify04 FAIL at result check ################ Test output: ================================ 18:20:10.558: 36: Event 0x20 18:20:10.558: 36: Event 0x10 18:20:10.558: 36: Event 0x20 18:20:10.558: 36: Event 0x10 18:20:10.558: 36: Event 0x20 18:20:10.558: 36: Event 0x10 18:20:10.558: 36: Event 0x20 18:20:10.558: 36: Event 0x10 18:20:10.558: 36: Read 8 events 18:20:10.558: 36: FAIL: inotify04.c:105: Found 8 unexpected inotify events (errno = 11 (Resource temporarily unavailable)) <<< ================================ ##################################### FAIL ##################################### To suppress fails in jenkins make the inotify04 test 'reqrst'. Still need to cleanup (or do not create) these events on dump/predump.
Diffstat (limited to 'test')
-rw-r--r--test/zdtm/static/inotify04.desc1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/zdtm/static/inotify04.desc b/test/zdtm/static/inotify04.desc
new file mode 100644
index 000000000..f19b3d438
--- /dev/null
+++ b/test/zdtm/static/inotify04.desc
@@ -0,0 +1 @@
+{'flags': 'reqrst'}