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

@require get system properties by JT_JAVA instead of testjdk

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • jtreg4.1
    • jtreg4.1
    • tools
    • None
    • b13

    Description

      Test.java
      /*
       * @test
       * @requires os.simpleArch == "x64"
       */
      public class Test {
      public static void main(String[] a) {throw new Error(); }
      }

      Run this test with 32bit testjdk (linux-i586) on a x64 Linux box, expect to got "no tests selected".
      But with different JT_JAVA (32bit stable_jdk or 64bit), got different result.

      With a 64bit JT_JAVA, test is run. This is not expected:
          $ $JT_JAVA -version
          java version "1.8.0"
          Java(TM) SE Runtime Environment (build 1.8.0-b132)
          Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)

          $JT_HOME/bin/jtreg -nr -v1 -jdk:jdk ws/Test.java
          FAILED: Test.java
          Test results: failed: 1

      With a 32bit JT_JAVA, test is not run, just as expected:
          $ $JT_JAVA -version
          java version "1.8.0"
          Java(TM) SE Runtime Environment (build 1.8.0-b132)
          Java HotSpot(TM) Server VM (build 25.0-b70, mixed mode)

          $JT_HOME/bin/jtreg -nr -v1 -jdk:jdk ws/Test.java
          Test results: no tests selected

      Please note that for above two runs, the only change is JT_JAVA. This should not change test result but it does.


      $JT_HOME/bin/jtreg -version
      jtreg, version 4.1 fcs b12

      Attachments

        Activity

          People

            jjg Jonathan Gibbons
            amlu Amy Lu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: