os.simpleArch is x64 for linux-aarch64 in @require context

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • jtreg4.1
    • Affects Version/s: jtreg4.1
    • Component/s: tools
    • None
    • b13

      os.simpleArch is set to x64 for linux-aarch64 platform, but usually arch == x64 means amd64 platforms

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

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

      $JTREG -jdk:$JDK Test.java
      Test results: failed: 1

      $JTREG -jdk:$JDK Test2.java
      Test results: no tests selected

      Since aarch64 isn't 64bits Intel, I expect to have no tests selected in both cases.

            Assignee:
            Jonathan Gibbons
            Reporter:
            Igor Ignatyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: