Derby
  1. Derby
  2. DERBY-647

Test harness for multi tests mangles file names if current directory contains a dot

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.2.1.6
    • Fix Version/s: 10.2.1.6
    • Component/s: Test
    • Labels:
      None

      Description

      If the current directory is something liket

      Java user dir:
      c:\export\home\tmp\os136789\testingDerby\CYGWIN_NT-5.2_i686-unknown\derbyall

      The test harness for multi tests is creating a log file based off that
      path, but is getting confused by the '.', assuming that is the lead in
      to a suffix. Thus it comes up with a log file of:

      C:\export\home\tmp\os136789\testingDerby\CYGWIN_NT-5.log

      which is outside the user.dir (current directory) and so of course,
      correctly, permission has not been granted to create that file.

      Thus this causes stress.multi to fail when the security manager is enabled.

        Activity

        Hide
        Daniel John Debrunner added a comment -

        svn revision 328515 - simplified code to generate log file names.

        Show
        Daniel John Debrunner added a comment - svn revision 328515 - simplified code to generate log file names.

          People

          • Assignee:
            Daniel John Debrunner
            Reporter:
            Daniel John Debrunner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development