mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-28 12:36:47 +00:00
Here is a race now:
./zdtm.sh --ct -d -C -x static/cgroup02 ns/static/pipe02 &> ns_static_pipe02.log || \
{ flock Makefile cat ns_static_pipe02.log; exit 1; }
./zdtm.sh --ct -d -C -x static/cgroup02 ns/static/busyloop00 &> ns_static_busyloop00.log || \
{ flock Makefile cat ns_static_busyloop00.log; exit 1; }
make[3]: `zdtm_ct' is up to date.
mkdir: cannot create directory ‘zdtm.GgIjUS/holder’: File exists
Reported-by: Mr Jenkins
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
16 lines
503 B
Bash
Executable file
16 lines
503 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# If a controller is created during dumping processes, criu may fail with error:
|
|
# Error (cgroup.c:768): cg: Set 3 is not subset of 2
|
|
# so lets create all test controllers before executing tests.
|
|
|
|
cat /proc/self/cgroup | grep zdtmtst.defaultroot && exit
|
|
|
|
tdir=`mktemp -d zdtm.XXXXXX`
|
|
for i in "zdtmtst" "zdtmtst.defaultroot"; do
|
|
mount -t cgroup -o none,name=$i zdtm $tdir &&
|
|
# a fake group prevents destroying of a controller
|
|
mkdir $tdir/holder &&
|
|
umount $tdir || exit 1
|
|
done
|
|
rmdir $tdir
|