When evaluating the ProblemList specified with -exclude, jtreg compares the platform specifiers as windows-i586 with the properties of the VM running the jtreg harness. It does not use the properties of the VM tested specified by -testvm.
Our testrunner is a 64-bit VM, that also tests 32-bit variants. Thus, if we want to exclude a test for the 32-bit VM by specifying windows-i586, it is not excluded. Instead, the ProbelmList is scanned for windows-amd64 excludes.
Basic functionality to ask the testvm for its properties is already implemented and just needs to be used in the proper place.
This change also fixes a copy-and-paste error in OS.java.
Our testrunner is a 64-bit VM, that also tests 32-bit variants. Thus, if we want to exclude a test for the 32-bit VM by specifying windows-i586, it is not excluded. Instead, the ProbelmList is scanned for windows-amd64 excludes.
Basic functionality to ask the testvm for its properties is already implemented and just needs to be used in the proper place.
This change also fixes a copy-and-paste error in OS.java.