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

TCK tests api/java_io/RandomAccessFile/descriptions.html#Write fail on Linux

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description

      This problem is reproducible quite stable on the Linux only.

      The testcases which fail (independently on previous state of VM
      or tests results) are:
      RandomAccessFile0048
      RandomAccessFile0068
      RandomAccessFile0072
      RandomAccessFile0076
      RandomAccessFile0080
      RandomAccessFile0085
      RandomAccessFile0105

      -------------------------------------------------------------------------------
      $JCK_HOME=<JCK home>
      testCase=RandomAccessFile0076

      java -classpath $JCK_HOME/tests/../classes:$JCK_HOME/javatest.jar:. javasoft.sqe.tests.api.java.io.RandomAccessFile.testRAF -TestCaseID $testCase -TestURL file://$JCK_HOME/tests/api/java_io/RandomAccessFile/descriptions.html#Write -TestWorkDirURL file://&lt;the workdir>/


      Where <the workdir> is NFS mounted directory.
      -------------------------------------------------------------------------------

      package javasoft.sqe.tests.api.java.io.RandomAccessFile;

      import javasoft.sqe.javatest.Status;
      import javasoft.sqe.jck.lib.FileTest;

      public class testRAF {

          public static void main(String[] s) {
              try {
                  for (int i = 0; i < 100; i++) {
              System.out.println(i);
              WriteTests test = new WriteTests();
              if (test.run(s, System.err, System.out).getType() !=Status.PASSED) {
               System.err.println("FAILED !!!!!!!!!!!");
               System.exit(13);
              }
                  }
              } catch (Exception e) {
                  System.err.println(e);
              }
          }
      }
      -------------------------------------------------------------------------------
      Output:
      ...
      15
      ====== RandomAccessFile0076 ======
      File verification failed at byte 285
      expected: -70
      read from file: 83
      FAILED !!!!!!!!!!!
      -------------------------------------------------------------------------------
      Linux RedHat 2.2.14-0.5

        Attachments

          Activity

            People

            Assignee:
            iris Iris Clark
            Reporter:
            akuzminorcl Alexander Kuzmin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: