Mercurial > hg > truffle
comparison test/compiler/rtm/cli/TestUseRTMLockingOptionOnUnsupportedVM.java @ 21817:12478c5eb000
Merge
author | asaha |
---|---|
date | Fri, 24 Oct 2014 17:09:30 -0700 |
parents | cabe05c85665 |
children |
comparison
equal
deleted
inserted
replaced
21815:37179dcf830a | 21817:12478c5eb000 |
---|---|
51 } | 51 } |
52 @Override | 52 @Override |
53 public void runTestCases() throws Throwable { | 53 public void runTestCases() throws Throwable { |
54 String errorMessage | 54 String errorMessage |
55 = RTMGenericCommandLineOptionTest.RTM_UNSUPPORTED_VM_ERROR; | 55 = RTMGenericCommandLineOptionTest.RTM_UNSUPPORTED_VM_ERROR; |
56 String experimentalOptionError | |
57 = CommandLineOptionTest.getExperimentalOptionErrorMessage( | |
58 "UseRTMLocking"); | |
59 // verify that options is experimental | |
60 CommandLineOptionTest.verifySameJVMStartup( | |
61 new String[] { experimentalOptionError }, null, ExitCode.FAIL, | |
62 "-XX:+UseRTMLocking"); | |
63 // verify that we can't use +UseRTMLocking | 56 // verify that we can't use +UseRTMLocking |
64 CommandLineOptionTest.verifySameJVMStartup( | 57 CommandLineOptionTest.verifySameJVMStartup( |
65 new String[] { errorMessage }, null, ExitCode.FAIL, | 58 new String[] { errorMessage }, null, ExitCode.FAIL, |
66 CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS, | |
67 "-XX:+UseRTMLocking"); | 59 "-XX:+UseRTMLocking"); |
68 // verify that we can turn it off | 60 // verify that we can turn it off |
69 CommandLineOptionTest.verifySameJVMStartup(null, | 61 CommandLineOptionTest.verifySameJVMStartup(null, |
70 new String[] { errorMessage }, ExitCode.OK, | 62 new String[] { errorMessage }, ExitCode.OK, |
71 CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS, | |
72 "-XX:-UseRTMLocking"); | 63 "-XX:-UseRTMLocking"); |
73 // verify that it is off by default | 64 // verify that it is off by default |
74 CommandLineOptionTest.verifyOptionValueForSameVM("UseRTMLocking", | 65 CommandLineOptionTest.verifyOptionValueForSameVM("UseRTMLocking", |
75 TestUseRTMLockingOptionOnUnsupportedVM.DEFAULT_VALUE, | 66 TestUseRTMLockingOptionOnUnsupportedVM.DEFAULT_VALUE); |
76 CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS); | |
77 } | 67 } |
78 | 68 |
79 public static void main(String args[]) throws Throwable { | 69 public static void main(String args[]) throws Throwable { |
80 new TestUseRTMLockingOptionOnUnsupportedVM().test(); | 70 new TestUseRTMLockingOptionOnUnsupportedVM().test(); |
81 } | 71 } |