Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7035555

attach/BasicTests.sh needs another tweak for Cygwin

    Details

    • Subcomponent:
    • Resolved In Build:
      b140
    • CPU:
      x86
    • OS:
      windows
    • Verification:
      Verified

      Description

      The fix for the following bug:

          6962617 3/3 Testcase changes, cleanup of problem list for jdk_tools targets

      modified the following SDK/JDK test:

          com/sun/tools/attach/BasicTests.sh

      to include an override that would allow the test to pass on Win2K.
      Unfortunately, the override is a little too broad and I noticed that
      it was kicking in on my WinXP environment running Cygwin.

      Here are the lines of interest:

           40 # Windows 2000 is a problem here, so we skip it, see 6962615
           41 osrev=`uname -a`
           42 if [ "`echo ${osrev} | grep 'CYGWIN'`" != "" ] ; then
           43 if [ "`echo ${osrev} | grep '5.0'`" != "" ] ; then
           44 echo "Treating as a pass, not testing Windows 2000"
           45 exit 0
           46 fi
           47 fi

      On WinXP VMware client, my "uname -a" output looks like:

      $ uname -a
      CYGWIN_NT-5.1 oliver-lt 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin

      The "grep '5.0' on line 43 matches the "5(0" part of my environment's
      uname -a output.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dcubed Daniel Daugherty
                Reporter:
                dcubed Daniel Daugherty
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: