From d0039960c4fdaf7704d06e1233865ea2e27a5d39 Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Wed, 14 Feb 2024 08:31:35 +0000 Subject: [PATCH] 8325743: test/jdk/java/nio/channels/unixdomain/SocketOptions.java enhance user name output in error case Reviewed-by: dfuchs, alanb --- test/jdk/java/nio/channels/unixdomain/SocketOptions.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/jdk/java/nio/channels/unixdomain/SocketOptions.java b/test/jdk/java/nio/channels/unixdomain/SocketOptions.java index f275b519394..95188ebcef1 100644 --- a/test/jdk/java/nio/channels/unixdomain/SocketOptions.java +++ b/test/jdk/java/nio/channels/unixdomain/SocketOptions.java @@ -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