Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7900031

jtreg -ignore:run doesn't run the test

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • None
    • tools
    • None
    • generic
    • generic

      jtreg -help says -ignore:run should run the test as if there is no @ignore.
      But, it appears to me that jtreg reports the test as passing but doesn't actually run it

      Example:

       D:/mystuff/devtools/jtreg/win32/bin/jtreg -J-Djavatest.noReportRequired=true -ignore:run -verbose -r:./fred.windows-i586/JTreport -w:./fred.windows-i586/JTwork d:/tools/tl8/langtools/test/tools/javac/defaultMethods/TestNoBridgeOnDefaults.java

      This is in the .jtr file:
      > #section:ignore
      > ----------messages:(3/134)----------
      > command: ignore awaits for VM support
      > reason: User specified action: run ignore awaits for VM support
      > elapsed time (seconds): 0.0
      > result: Passed. @ignore suppressed by command line option: awaits for VM support
      >
      >
      > test result: Passed. @ignore suppressed by command line option: awaits for VM support

      Whereas if I remove the @ignore, the .jtr file contains this:
      > #section:main
      > ----------messages:(3/146)----------
      > command: main TestNoBridgeOnDefaults
      > reason: Assumed action based on file name: run main TestNoBridgeOnDefaults
      > elapsed time (seconds): 0.172
      > ----------System.out:(0/0)----------
      > ----------System.err:(3/280)*----------
      > check: D:\\tools\\tl8\\langtools\\fred.windows-i586\\JTwork\\classes\\tools\\javac\\defaultMethods\\TestNoBridgeOnDefaults$B.class
      > check: D:\\tools\\tl8\\langtools\\fred.windows-i586\\JTwork\\classes\\tools\\javac\\defaultMethods\\TestNoBridgeOnDefaults$D.class
      > STATUS:Passed.
      > result: Passed. Execution successful
      >
      >
      > test result: Passed. Execution successful

            jjg Jonathan Gibbons
            jjh James Holmlund (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: