comparison mx/mx_graal.py @ 18224:bfa20550f0a8

Suppress menubar for GraalJUnitCore on Mac
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Fri, 31 Oct 2014 11:24:02 -0700
parents 8588db09f5e9
children 6924bb0badc9
comparison
equal deleted inserted replaced
18221:2c68474cc893 18224:bfa20550f0a8
1179 for jdkDist in _jdkDeployedDists: 1179 for jdkDist in _jdkDeployedDists:
1180 dist = mx.distribution(jdkDist.name) 1180 dist = mx.distribution(jdkDist.name)
1181 excluded.update([d.output_dir() for d in dist.sorted_deps()]) 1181 excluded.update([d.output_dir() for d in dist.sorted_deps()])
1182 cp = os.pathsep.join([e for e in cp.split(os.pathsep) if e not in excluded]) 1182 cp = os.pathsep.join([e for e in cp.split(os.pathsep) if e not in excluded])
1183 vmArgs = ['-XX:-UseGraalClassLoader'] + vmArgs 1183 vmArgs = ['-XX:-UseGraalClassLoader'] + vmArgs
1184
1185 # suppress menubar and dock when running on Mac
1186 vmArgs = ['-Djava.awt.headless=true'] + vmArgs
1184 1187
1185 if len(testclasses) == 1: 1188 if len(testclasses) == 1:
1186 # Execute Junit directly when one test is being run. This simplifies 1189 # Execute Junit directly when one test is being run. This simplifies
1187 # replaying the VM execution in a native debugger (e.g., gdb). 1190 # replaying the VM execution in a native debugger (e.g., gdb).
1188 vm(prefixArgs + vmArgs + ['-cp', mx._separatedCygpathU2W(cp), 'com.oracle.graal.test.GraalJUnitCore'] + coreArgs + testclasses) 1191 vm(prefixArgs + vmArgs + ['-cp', mx._separatedCygpathU2W(cp), 'com.oracle.graal.test.GraalJUnitCore'] + coreArgs + testclasses)