Commit d4f01fa5 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

test/other: check criu exec

Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent a433cdf0
#!/bin/bash
CRIU=../../../criu/criu
set -e -m -x
cat < /dev/zero > /dev/null &
pid=$!
sleep 1
lsof -p $pid
$CRIU exec -t $pid fake_syscall && exit 1 || true
fd=`$CRIU exec -t $pid open '&/dev/null' 0 | sed 's/.*(\(.*\))/\1/'`
$CRIU exec -t $pid dup2 $fd 0
wait $pid
echo PASS
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment