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

TEST_BUG: java/awt/Dialog/FileDialogFilterTest/FileDialogFilterTest.html fails

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b08
    • CPU:
      generic
    • OS:
      generic

      Description

      Name: iaR10016 Date: 03/25/2004


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b43, JDK1.4.2-b28
      Testbase : Regression-test
      Platform[s] : all
      switch/Mode : -client
      Falling test[s]: java/awt/Dialog/FileDialogFilterTest/FileDialogFilterTest.html

      Regression-test java/awt/Dialog/FileDialogFilterTest/FileDialogFilterTest.html test fails with
      JDK1.5.0-b43 on all platforms.

      Test Description reads:
      ...
      Run the test, make sure a file dialog comes up with no crash.
      Make sure the test runs on Windows 2000, Windows 98.
      ...

      However, nothing happens when I start the test - file dialog does not appear.

      Here is the test code source:
      --------- FileDialogFilterTest.java ---------
            1 import java.applet.Applet;
            2 import java.io.*;
            3 import java.awt.*;
            4
            5 // Test for 4364256
            6 public class FileDialogFilterTest extends Applet
            7 {
            8 public static void main(String[] args)
            9 {
           10 FileDialog fDlg = new FileDialog(new Frame());
           11 fDlg.addNotify();
           12 fDlg.setFilenameFilter(new MyFilter());
           13 fDlg.show();
           14 System.exit(0);
           15 }
           16 }
           17
           18 class MyFilter implements FilenameFilter
           19 {
           20 public boolean accept(File dir,String name) { return true; }
           21 }
      ---------------------------------------------

      The reason of the failure is that when the test is executed as a part of Regression testsuite
      it starts using appletviewer. However, FileDialogFilterTest.java does not contain corresponding
      init() method - tested FileDialog is started just from main() function.

      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/all/b43/ws/j2se/test/java/awt/Dialog/FileDialogFilterTest/FileDialogFilterTest.html

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b43/regtest/win32/Windows_XP_Pro_manual_linux-16/workDir/test-manual/java/awt/Dialog/FileDialogFilterTest/FileDialogFilterTest.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)
      --- script start ---
      #!/bin/sh

      #Paths in Java Software:
      TESTJAVA="/java/re/jdk/1.5.0/promoted/all/b43/binaries/linux-i586"
      TESTBASE="/java/re/jdk/1.5.0/promoted/all/b43/ws/j2se/test"

      #Alternative paths outside Java Software
      #TESTJAVA="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b43/binaries/linux-i586"
      #TESTBASE="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b43/ws/j2se/test"

      #Alternative paths for the NSK site:
      TESTJAVA="/net/linux-15/export/home/java/jdk1.5.0/linux"
      TESTBASE="/net/linux-15/export/home/java/regtest.tiger/test"

      cp $TESTBASE/java/awt/Dialog/FileDialogFilterTest/* ./
      $TESTJAVA/bin/javac FileDialogFilterTest.java
      $TESTJAVA/bin/appletviewer FileDialogFilterTest.html
      --- script end ---

      Specific machine info:
      ======================
      Hostname: linux-16
      OS: Windows XP Pro

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

        Attachments

          Activity

            People

            Assignee:
            art Artem Ananiev (Inactive)
            Reporter:
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: