8153856: com/sun/jdi/WatchFramePop.sh fails with exit code 1
authordsamersoff
Wed, 13 Apr 2016 12:10:42 +0300
changeset 37530 059353096b4e
parent 37528 caaadf14458c
child 37531 e83b85f957c9
8153856: com/sun/jdi/WatchFramePop.sh fails with exit code 1 Summary: fixed sed expression in a test Reviewed-by: sla
jdk/test/com/sun/jdi/ShellScaffold.sh
--- a/jdk/test/com/sun/jdi/ShellScaffold.sh	Tue Apr 12 00:43:57 2016 -0700
+++ b/jdk/test/com/sun/jdi/ShellScaffold.sh	Wed Apr 13 12:10:42 2016 +0300
@@ -924,7 +924,7 @@
         # If jstack exists, so will jps
         # Show stack traces of jdb and debuggee as a possible debugging aid.
         jdbCmd=`$jdk/bin/jps -v | $grep $jdbKeyword`
-        realJdbPid=`echo "$jdbCmd" | sed -e 's@ TTY.*@@'`
+        realJdbPid=`echo "$jdbCmd" | sed -e 's@ .*@@'`
         if [ ! -z "$realJdbPid" ] ; then
             echo "-- jdb process info ----------------------" >&2
             echo "      $jdbCmd"                              >&2