|
1 | 1 | /* |
2 | | - * Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2013, 2026, 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 |
|
34 | 34 | * -Dtest.libs=N ReplayCacheTestProc |
35 | 35 | */ |
36 | 36 |
|
37 | | -import java.io.*; |
| 37 | +import java.io.File; |
| 38 | +import java.io.FileOutputStream; |
| 39 | +import java.io.IOException; |
| 40 | +import java.io.PrintStream; |
38 | 41 | import java.nio.BufferUnderflowException; |
39 | 42 | import java.nio.channels.SeekableByteChannel; |
40 | 43 | import java.nio.file.Files; |
|
43 | 46 | import java.nio.file.StandardOpenOption; |
44 | 47 | import java.security.MessageDigest; |
45 | 48 | import java.security.NoSuchAlgorithmException; |
46 | | -import java.util.*; |
| 49 | +import java.util.ArrayList; |
| 50 | +import java.util.Arrays; |
| 51 | +import java.util.Base64; |
| 52 | +import java.util.HexFormat; |
| 53 | +import java.util.List; |
| 54 | +import java.util.Random; |
47 | 55 | import java.util.regex.Matcher; |
48 | 56 | import java.util.regex.Pattern; |
49 | 57 |
|
50 | 58 | import jdk.test.lib.Asserts; |
51 | 59 | import jdk.test.lib.Platform; |
52 | 60 | import jdk.test.lib.process.Proc; |
| 61 | +import jtreg.SkippedException; |
53 | 62 | import sun.security.jgss.GSSUtil; |
54 | 63 | import sun.security.krb5.internal.rcache.AuthTime; |
55 | 64 |
|
@@ -126,8 +135,7 @@ public static void main0(String[] args) throws Exception { |
126 | 135 | libs = userLibs.split(","); |
127 | 136 | if (Arrays.asList(libs).contains("N") && !isNativeLibAvailable()) { |
128 | 137 | // Skip test when native GSS libs are not available in running platform |
129 | | - System.out.println("Native mode not available - skipped"); |
130 | | - return; |
| 138 | + throw new SkippedException("Native mode not available - skipped"); |
131 | 139 | } |
132 | 140 |
|
133 | 141 | KDC kdc = KDC.create(OneKDC.REALM, HOST, 0, true); |
|
0 commit comments