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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: