mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
test: check descriptors and maps for static tests
tname doesn't contain a test type. Reported-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
3f23bde548
commit
55a7c7a79d
@@ -709,7 +709,7 @@ EOF
|
|||||||
|
|
||||||
[ -n "$dump_only" ] && cpt_args="$cpt_args $POSTDUMP"
|
[ -n "$dump_only" ] && cpt_args="$cpt_args $POSTDUMP"
|
||||||
|
|
||||||
expr $tname : "static" > /dev/null && {
|
expr $tdir : ".*static$" > /dev/null && {
|
||||||
save_fds $PID $ddump/dump.fd
|
save_fds $PID $ddump/dump.fd
|
||||||
save_maps $PID $ddump/dump.maps
|
save_maps $PID $ddump/dump.maps
|
||||||
}
|
}
|
||||||
@@ -744,7 +744,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$dump_only" ]; then
|
if [ -n "$dump_only" ]; then
|
||||||
expr $tname : "static" > /dev/null && {
|
expr $tdir : ".*static$" > /dev/null && {
|
||||||
save_fds $PID $ddump/dump.fd.after
|
save_fds $PID $ddump/dump.fd.after
|
||||||
diff_fds $ddump/dump.fd $ddump/dump.fd.after || return 1
|
diff_fds $ddump/dump.fd $ddump/dump.fd.after || return 1
|
||||||
|
|
||||||
@@ -782,7 +782,7 @@ EOF
|
|||||||
|
|
||||||
[ -n "$PIDNS" ] && PID=`cat $TPID`
|
[ -n "$PIDNS" ] && PID=`cat $TPID`
|
||||||
|
|
||||||
expr $tname : "static" > /dev/null && {
|
expr $tdir : ".*static$" > /dev/null && {
|
||||||
save_fds $PID $ddump/restore.fd
|
save_fds $PID $ddump/restore.fd
|
||||||
save_maps $PID $ddump/restore.maps
|
save_maps $PID $ddump/restore.maps
|
||||||
diff_fds $ddump/dump.fd $ddump/restore.fd || return 2
|
diff_fds $ddump/dump.fd $ddump/restore.fd || return 2
|
||||||
|
Reference in New Issue
Block a user