Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
/ jdk22u Public archive

Commit

Permalink
8325743: test/jdk/java/nio/channels/unixdomain/SocketOptions.java enh…
Browse files Browse the repository at this point in the history
…ance user name output in error case

Backport-of: d0039960c4fdaf7704d06e1233865ea2e27a5d39
  • Loading branch information
MBaesken committed Mar 13, 2024
1 parent b8fa711 commit 6aa344a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/jdk/java/nio/channels/unixdomain/SocketOptions.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 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 @@ -72,7 +72,8 @@ static void testPeerCred() throws Exception {
// Check returned user name

if (!s1.equals(s2)) {
throw new RuntimeException("wrong username");
throw new RuntimeException("wrong username, actual " + s1 +
" but expected value from property user.name is " + s2);
}

// Try setting the option: Read only
Expand Down

1 comment on commit 6aa344a

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.