diff options
author | Andrey Vagin <avagin@openvz.org> | 2015-02-27 16:29:36 +0300 |
---|---|---|
committer | Pavel Emelyanov <xemul@parallels.com> | 2015-02-27 16:29:36 +0300 |
commit | 6c6854b5e9185ced9ebf580c15176d57fb483e95 (patch) | |
tree | b8657a152cca0fdfd2c4e7963e6a054ad28623fa | |
parent | 1d7ed7dfab1cfc5151b557748dc2a7ecde5ce14a (diff) |
zdtm: add debug to investigate fails of maps007
Reported-by: Mr Jenkins
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
-rwxr-xr-x | test/zdtm.sh | 3 | ||||
-rw-r--r-- | test/zdtm/live/transition/maps007.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/test/zdtm.sh b/test/zdtm.sh index 408170519..878bfaefc 100755 --- a/test/zdtm.sh +++ b/test/zdtm.sh @@ -800,7 +800,7 @@ EOF fi sltime=1 - for i in `seq 50`; do + for i in `seq 200`; do kill -0 $PID > /dev/null 2>&1 || break echo Waiting... sleep 0.$sltime @@ -825,6 +825,7 @@ EOF fi cat $test.out + [ $i -gt 50 ] && return 2 # waiting too long cat $test.out | grep -q PASS || return 2 [ "$CLEANUP" -ne 0 ] && rm -rf --one-file-system `dirname $ddump` echo "Test: $test, Result: PASS" diff --git a/test/zdtm/live/transition/maps007.c b/test/zdtm/live/transition/maps007.c index 68ac43161..b5afe1a8c 100644 --- a/test/zdtm/live/transition/maps007.c +++ b/test/zdtm/live/transition/maps007.c @@ -84,6 +84,8 @@ int main(int argc, char **argv) if (!futex_get(&shm->stop)) /* shm->delta must be always bigger than MAX_DELTA */ futex_wait_while_lt(&shm->delta, MAX_DELTA + 2); + else if (count % 100 == 0) + test_msg("count %d delta %d\n", count, futex_get(&shm->delta)); /* heartbeat */ if (futex_get(&shm->stop) && atomic_get(&shm->delta.raw) == MAX_DELTA) break; |