Skip to content

Commit 6199088

Browse files
committed
Tests: line up test console results passed/failed/skipped
1 parent 3fd7bc5 commit 6199088

13 files changed

Lines changed: 42 additions & 53 deletions

src/test/com/wolfssl/provider/jsse/test/WolfSSLContextTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ public void testContextDefaultParamsExcludeAnon() throws Exception {
10381038
}
10391039

10401040
if (!haveAnon) {
1041-
System.out.println("\t... skipped (no anon suites)");
1041+
System.out.println("\t... skipped");
10421042
return;
10431043
}
10441044

src/test/com/wolfssl/provider/jsse/test/WolfSSLEngineMemoryLeakTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ public void testEngineMemoryLeakWithAbandonedEngines() throws Exception {
104104
final double maxAcceptableGrowthMB = 80.0;
105105

106106
String javaVersion = System.getProperty("java.version");
107-
System.out.print("\tmem leak test with " + numEngines +
108-
" engines (JDK " + javaVersion + ")");
107+
System.out.print("\tmem leak test with " + numEngines + " engines");
109108

110109
/* Measure baseline memory - use aggressive GC */
111110
for (int i = 0; i < 3; i++) {

src/test/com/wolfssl/provider/jsse/test/WolfSSLEngineTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2701,7 +2701,7 @@ else if (!s.contains("_anon_") && nonAnonSuite == null) {
27012701
}
27022702

27032703
if (anonSuite == null) {
2704-
pass("\t... skipped (no anon suites)");
2704+
pass("\t... skipped");
27052705
return;
27062706
}
27072707

@@ -2760,7 +2760,7 @@ public void testSSLHandshakeExceptionCauseChain()
27602760
KeyManagementException, KeyStoreException,
27612761
CertificateException, IOException, UnrecoverableKeyException {
27622762

2763-
System.out.print("\tSSLEngine SSLHandshakeException cause chain");
2763+
System.out.print("\tSSLHandshakeException cause");
27642764

27652765
final String rejectMsg = "Intentional engine test rejection";
27662766
TrustManager[] rejectingTMs = { new X509TrustManager() {
@@ -2880,7 +2880,7 @@ public void testCloseNotifyTLS13HandshakeStatus()
28802880

28812881
/* TLS 1.3 close_notify should return NOT_HANDSHAKING,
28822882
* not NEED_WRAP (RFC 8446 Section 6.1). */
2883-
System.out.print("\tTesting TLS 1.3 close_notify status");
2883+
System.out.print("\tTLS 1.3 close_notify status");
28842884

28852885
String[] proto = {"TLSv1.3"};
28862886
this.ctx = tf.createSSLContext("TLSv1.3", engineProvider);
@@ -2977,7 +2977,7 @@ public void testBufferUnderflowPartialRecord()
29772977

29782978
/* Test that unwrap() returns BUFFER_UNDERFLOW with 0 bytes
29792979
* consumed when given a partial TLS record. */
2980-
System.out.print("\tTesting BUFFER_UNDERFLOW partial record");
2980+
System.out.print("\tUnderflow partial record");
29812981

29822982
this.ctx = tf.createSSLContext("TLS", engineProvider);
29832983
SSLEngine server = this.ctx.createSSLEngine();
@@ -3431,7 +3431,7 @@ public void testBufferOverflowSmallOutput()
34313431

34323432
/* Test BUFFER_OVERFLOW with small output, then retry
34333433
* with larger buffer. */
3434-
System.out.print("\tTesting BUFFER_OVERFLOW small output");
3434+
System.out.print("\tOverflow small output");
34353435

34363436
this.ctx = tf.createSSLContext("TLS", engineProvider);
34373437
SSLEngine server = this.ctx.createSSLEngine();

src/test/com/wolfssl/provider/jsse/test/WolfSSLKeyX509Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ public void testChooseAliasSkipsCertOnlyEntries()
11181118
KeyManagementException, CertificateException, IOException,
11191119
NoSuchProviderException, UnrecoverableKeyException {
11201120

1121-
System.out.print("\tTesting chooseAlias skips cert-only");
1121+
System.out.print("\tchooseAlias skips cert-only");
11221122

11231123
KeyManager[] km = tf.createKeyManager("SunX509", tf.allJKS, provider);
11241124
X509ExtendedKeyManager x509km = (X509ExtendedKeyManager) km[0];

src/test/com/wolfssl/provider/jsse/test/WolfSSLServerSocketFactoryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public void testServerFactoryAnonCipherSuiteFiltering()
267267
}
268268

269269
if (!haveAnon) {
270-
System.out.println("\t\t\t... skipped (no anon suites)");
270+
System.out.println("\t\t\t... skipped");
271271
return;
272272
}
273273

src/test/com/wolfssl/provider/jsse/test/WolfSSLServerSocketTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ else if (!s.contains("_anon_") && nonAnonSuite == null) {
918918
}
919919

920920
if (anonSuite == null) {
921-
System.out.println("\t\t... skipped (no anon suites)");
921+
System.out.println("\t\t... skipped");
922922
return;
923923
}
924924

src/test/com/wolfssl/provider/jsse/test/WolfSSLSessionContextTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ public void testSessionTimeoutBoundaryExpiry()
612612

613613
/* Regression: session must expire at exactly the
614614
* timeout boundary (diff >= timeout, not diff > timeout) */
615-
System.out.print("\tTesting session timeout boundary");
615+
System.out.print("\tSession timeout boundary");
616616

617617
String originalProp = Security.getProperty(
618618
"wolfjsse.clientSessionCache.disabled");
@@ -717,7 +717,7 @@ public void testSessionInvalidationFilteredFromGetIds()
717717

718718
/* Regression: invalidated sessions must be filtered
719719
* from getIds() and getSession(). */
720-
System.out.print("\tTesting invalidation filtered from getIds");
720+
System.out.print("\tInvalidation filtered getIds");
721721

722722
String originalProp = Security.getProperty(
723723
"wolfjsse.clientSessionCache.disabled");

src/test/com/wolfssl/provider/jsse/test/WolfSSLSocketFactoryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ public void testFactoryAnonCipherSuiteFiltering()
458458
}
459459

460460
if (!haveAnon) {
461-
System.out.println("\t\t... skipped (no anon suites)");
461+
System.out.println("\t\t... skipped");
462462
return;
463463
}
464464

src/test/com/wolfssl/provider/jsse/test/WolfSSLSocketTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4366,7 +4366,7 @@ else if (!s.contains("_anon_") && nonAnonSuite == null) {
43664366
}
43674367

43684368
if (anonSuite == null) {
4369-
System.out.println("\t... skipped (no anon suites)");
4369+
System.out.println("\t... skipped");
43704370
return;
43714371
}
43724372

@@ -4426,7 +4426,7 @@ public void testSSLHandshakeExceptionCauseChain()
44264426
UnrecoverableKeyException, InterruptedException,
44274427
java.util.concurrent.ExecutionException {
44284428

4429-
System.out.print("\tSSLHandshakeException cause chain");
4429+
System.out.print("\tSSLHandshakeException cause");
44304430

44314431
/* Create server context with valid certs */
44324432
SSLContext srvCtx = tf.createSSLContext("TLS", ctxProvider);

src/test/com/wolfssl/provider/jsse/test/WolfSSLTrustX509Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3490,7 +3490,7 @@ public void testInitWithCertPathTrustManagerParameters()
34903490
KeyStoreException, IOException, CertificateException,
34913491
InvalidAlgorithmParameterException {
34923492

3493-
System.out.print("\tTesting init(CertPathTrustManagerParameters)");
3493+
System.out.print("\tinit(CPTrustManagerParameters)");
34943494

34953495
/* Load CA certs and create TrustAnchors manually */
34963496
KeyStore caStore = KeyStore.getInstance(
@@ -3543,7 +3543,7 @@ public void testInitWithKeyStoreBuilderParameters()
35433543
KeyStoreException, IOException, CertificateException,
35443544
InvalidAlgorithmParameterException {
35453545

3546-
System.out.print("\tTesting init(KeyStoreBuilderParameters)");
3546+
System.out.print("\tinit(KeyStoreBuilderParameters)");
35473547

35483548
KeyStore.Builder ksBuilder = KeyStore.Builder.newInstance(
35493549
WolfSSLTestFactory.isAndroid() ? "BKS" : "JKS",

0 commit comments

Comments
 (0)