8325743: test/jdk/java/nio/channels/unixdomain/SocketOptions.java enhance user name output in error case

Reviewed-by: dfuchs, alanb
This commit is contained in:
Matthias Baesken 2024-02-14 08:31:35 +00:00
parent ea98de63f7
commit d0039960c4

@ -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
@ -72,7 +72,8 @@ public class SocketOptions {
// 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