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

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

XMLWordPrintable

    • x86
    • linux

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: