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

TESTBUG: 6291034 testcase is failing with exit code1

XMLWordPrintable

    • b03
    • generic
    • generic

      6291034 testcase is failing with exit code1. This testcase is fixed in 1.4.2_10-b02 but failing with 1.4.2_10-b02.

      JDK Information:
      ----------------
      $/export/updates/jdks/j2sdk1.4.2_10/bin/java -version
      java version "1.4.2_10"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b02)
      Java HotSpot(TM) Client VM (build 1.4.2_10-b02, mixed mode)

      How to reproduce:
      -----------------
      Copy the directory from the following workspace
      Master WS:
      /net/shiva.sfbay/test/MyTestArea/JDK1.4.2/workspace_142/test/CTE_REGTEST/Generic/6291034
      Child WS:
      /net/urts071.india/export6/testSuites/Regression/workspace_142/test/CTE_REGTEST/Generic/6291034

      Compile DeleteOnExitTest.java
      Run DeleteOnExitTest.sh file

      OUTPUT:
      ------
      Files before test: 8
      iis = javax.imageio.stream.FileCacheImageInputStream@b162d5
      ios = javax.imageio.stream.FileCacheImageOutputStream@110b053
      Files after test: 10
      + [ 0 -ne 0 ]
      + + ls
      + wc -l
      numfiles1= 8
      + [ 7 -ne 8 ]
      + echo Test fails: tmp file exists!
      Test fails: tmp file exists!
      + exit 1

      Directly with DeleteOnExitTest.java file:
      -----------------------------------------
      IF DeleteOnExitTest.java is executed directly exit code is 0
      /export/updates/jdks/j2sdk1.4.2_10/bin/java -Djava.io.tmpdir=. DeleteOnExitTest ./animdog.gif ./output.png
      tmp: .
      tmpDir is .
      Files before test: 8
      iis = javax.imageio.stream.FileCacheImageInputStream@b162d5
      ios = javax.imageio.stream.FileCacheImageOutputStream@110b053
      Files after test: 10
      bash-3.00# echo $?
      0

      NOTE:
      -----
      In DeleteOnExitTest.java file it is checking if number of files are equal before and after then test should Fail. But in DeleteOnExitTest.sh file is doing other way.

            asaha Abhijit Saha
            skantesunw Srilatha Kante (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: