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

JCK1.3a, api/java_io/FileReader/index.html#FRSkipTest, merlin, Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.4.0
    • core-libs
    • x86
    • windows_98



      Name: iaR10016 Date: 05/15/2001


      JDK : JDK1.4.0 beta-b64
      JCK : JCK1.3a
      Platform[s] : Windows ME, Windows 95
      switch/Mode : -client -Xmixed
      JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
      Failing Test : api/java_io/FileReader/index.html#FRSkipTest

      The test fails only if you use network path for the -TestWorkDirURL argument.

      Test source location:
      =====================
      /net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/api/java_io/FileReader/FRSkipTest.java

      jtr file location:
      ==================
      /net/jtgb4u4c.eng/export/sail16/results/merlin/b64/jck13a/win32/winme_client_noclassgc_batch_verify_linux-18/workDir/api/java_io/FileReader/index_FRSkipTest.jtr

      How to reproduce:
      ====================
      Run the following script under Linux OS (probably, you need to change JCK, JAVA_HOME paths.
      You also need to set -TestWorkDirURL parameter to the existing network path):
      --------Script START---------------------
      #!/bin/sh
      JAVA_HOME="C:/jdk1.4.0"
      JCK="H:/jck1.3a/JCK-runtime-13a"
      WORKDIR="file:///H:/ira/tests/"
      export CLASSPATH="$JCK/classes;$JCK/javatest.jar"
      executeClass="javasoft.sqe.tests.api.java.io.FileReader.FRSkipTest"
      executeArgs="-TestWorkDirURL $WORKDIR -TestURL file:$JCK/tests/api/java_io/FileReader/index.html#FRSkipTest"
      $JAVA_HOME/bin/java -Xfuture ${executeClass} ${executeArgs}
      ---------Script END----------------------

      Test output:
      =============
      Starting testcase SkipTest0001...
      Skip less than the number of characters that are in the FileReader
      Creating the temporary file...
      Constructing FileReader( String ) using the default encoding
      Constructor successful
      Number of characters skipped was 3
      Verifying file position after skip()
      File position is correct
      Testcase passed
      Testcase SkipTest0001 done

      Starting testcase SkipTest0002...
      Testing the Skip Method with parameter equal to the number characters that are in the FileReader
      Creating the temporary file...
      Constructing FileReader( String ) using the default encoding
      Constructor successful
      Number of characters skipped was 6
      Verifying file position after skip()
      File position is correct
      Testcase passed
      Testcase SkipTest0002 done

      Starting testcase SkipTest0003...
      Testing the Skip Method with parameter greater than the number characters that are in the FileReader
      Creating the temporary file...
      Constructing FileReader( String ) using the default encoding
      Constructor successful
      Number of characters skipped was 6
      Verifying file position after skip()
      File position is correct
      Testcase passed
      Testcase SkipTest0003 done

      Starting testcase SkipTest0004...
      Testing the Skip Method with an empty file.
      Creating the temporary file...
      Constructing FileReader( String ) using the default encoding
      Constructor successful
      Number of characters skipped was 1
      Test case failed. Return value is 1 instead of the expected value 0
      Testcase SkipTest0004 done

      Starting testcase SkipTest0005...
      Testing the Skip Method on a closed file
      Creating the temporary file...
      Constructing FileReader( String ) using the default encoding
      Constructor successful
      Closing the stream
      Testcase passed. Threw IOException as expected.
      Testcase SkipTest0005 done

      Starting testcase SkipTest0006...
      Testing the Skip Method with zero as long argument
      Creating the temporary file...
      Constructing FileReader( String ) using the default encoding
      Constructor successful
      Number of characters skipped was 0
      Verifying file position after skip()
      File position is correct
      Testcase passed
      Testcase SkipTest0006 done

      Starting testcase SkipTest0007...
      Testing the Skip Method with negative argument
      Creating the temporary file...
      Constructing FileReader( String ) using the default encoding
      Constructor successful
      Testcase passed. Threw IllegalArgumentException as expected.
      Testcase SkipTest0007 done

      Starting testcase SkipTest0008...
      Try to skip a large number of characters
      Creating the temporary file...
      Constructing FileReader( String ) using the default encoding
      Constructor successful
      Number of characters skipped was 5121
      Testcase passed for skip(large_value)
      Testcase SkipTest0008 done

      ----------log:(9/372)----------
      SkipTest0001: Passed. OKAY
      SkipTest0002: Passed. OKAY
      SkipTest0003: Passed. OKAY
      SkipTest0004: Failed. Test case failed. Return value is 1 instead of the expected value 0
      SkipTest0005: Passed. OKAY
      SkipTest0006: Passed. OKAY
      SkipTest0007: Passed. OKAY
      SkipTest0008: Passed. OKAY
      STATUS:Failed.tests: 8; passed: 7; failed: 1; first test case failure: SkipTest0004

      Specific Machine Info:
      =====================
      Hostname: linux-18
      OS: Windows ME

      ======================================================================

            mr Mark Reinhold
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: