File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 2424/* @test
2525 @bug 6481955
2626 @summary Path length less than MAX_PATH (260) works on Windows
27- @library /test/lib
27+ @requires (os.family == "windows")
2828 */
2929
3030import java .io .File ;
3131import java .io .IOException ;
3232
33- import jtreg .SkippedException ;
34-
3533public class MaxPath {
3634 public static void main (String [] args ) throws Exception {
37- String osName = System .getProperty ("os.name" );
38- if (!osName .startsWith ("Windows" )) {
39- throw new SkippedException ("This test is run only on Windows" );
40- }
41-
4235 int MAX_PATH = 260 ;
4336 String dir = new File ("." ).getAbsolutePath () + "\\ " ;
4437 String padding = "1234567890123456789012345678901234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890012345678900123456789001234567890" ;
You can’t perform that action at this time.
0 commit comments