File tree 1 file changed +6
-1
lines changed
test/hotspot/jtreg/serviceability/sa
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2017, 2020 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2017, 2022 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
30
30
import jdk .test .lib .process .OutputAnalyzer ;
31
31
import jdk .test .lib .process .ProcessTools ;
32
32
import jdk .test .lib .SA .SATestUtils ;
33
+ import jtreg .SkippedException ;
33
34
34
35
/**
35
36
* @test
@@ -87,6 +88,10 @@ private static void dumpClass(long lingeredAppPid)
87
88
88
89
public static void main (String [] args ) throws Exception {
89
90
SATestUtils .skipIfCannotAttach (); // throws SkippedException if attach not expected to work.
91
+ if (SATestUtils .needsPrivileges ()) {
92
+ // This test will create files as root that cannot be easily deleted, so don't run.
93
+ throw new SkippedException ("Cannot run this test on OSX if adding privileges is required." );
94
+ }
90
95
LingeredApp theApp = null ;
91
96
try {
92
97
theApp = LingeredApp .startApp ();
You can’t perform that action at this time.
0 commit comments