From ae44dd36a1a44deaceaf99afba2160598189fb0f Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Thu, 11 Jul 2013 22:32:27 +0400 Subject: [PATCH] zdtm: exclude vdso before modifing output of ldd ldd pipe00: linux-vdso.so.1 => (0x00007fffbb0cb000) Currently the first part of line is dropts, if the line contains "=>", so we need to exclude vdso, before modifing lines. This patch fixes bug: $ zdtm.sh ns/static/pipe00 Failed at (0x00007fffa49fe000) Signed-off-by: Andrey Vagin Signed-off-by: Pavel Emelyanov --- test/zdtm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/zdtm.sh b/test/zdtm.sh index 9553ef93c..9749b9006 100755 --- a/test/zdtm.sh +++ b/test/zdtm.sh @@ -235,7 +235,7 @@ construct_root() # libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6dc5000) # /lib/ld-linux-armhf.so.3 (0xb6f0b000) - for i in `ldd $test_path $ps_path | grep -P '^\s' | sed "s/.*=> //" | awk '{ print $1 }' | grep -v vdso`; do + for i in `ldd $test_path $ps_path | grep -P '^\s' | grep -v vdso | sed "s/.*=> //" | awk '{ print $1 }'`; do local lib=`basename $i` [ -f $libdir/$lib ] && continue || [ -f $i ] && cp $i $libdir && cp $i $libdir2 && continue ||