Skip to content

Commit

Permalink
a native test
Browse files Browse the repository at this point in the history
  • Loading branch information
wangweij committed Mar 14, 2024
1 parent c877d7b commit a89d358
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/jdk/sun/security/krb5/auto/Cleaners.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -152,7 +152,7 @@ public static void main(String[] args) throws Exception {
Proc.binOut(b.getMic(MSG));
}
}
System.out.println("Prepare for GC");
System.err.println("Prepare for GC");
for (int i = 0; i < 10; i++) {
System.gc();
Thread.sleep(100);
Expand All @@ -162,9 +162,9 @@ public static void main(String[] args) throws Exception {
private static void ensureCleanersCalled(Proc p) throws Exception {
p.output()
.shouldHaveExitValue(0)
.stdoutShouldMatch("Prepare for GC(.|\\n)*GSSLibStub_deleteContext")
.stdoutShouldMatch("Prepare for GC(.|\\n)*GSSLibStub_releaseName")
.stdoutShouldMatch("Prepare for GC(.|\\n)*GSSLibStub_releaseCred");
.stderrShouldMatch("Prepare for GC(.|\\n)*GSSLibStub_deleteContext")
.stderrShouldMatch("Prepare for GC(.|\\n)*GSSLibStub_releaseName")
.stderrShouldMatch("Prepare for GC(.|\\n)*GSSLibStub_releaseCred");
}

private static Proc proc(String type) throws Exception {
Expand Down

0 comments on commit a89d358

Please sign in to comment.