< prev index next >

test/jdk/java/nio/channels/unixdomain/SocketOptions.java

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 2020, 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
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.
--- 1,7 ---
  /*
!  * 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
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

*** 70,11 ***
                  String s2 = System.getProperty("user.name");
  
                  // Check returned user name
  
                  if (!s1.equals(s2)) {
!                     throw new RuntimeException("wrong username");
                  }
  
                  // Try setting the option: Read only
  
                  try {
--- 70,12 ---
                  String s2 = System.getProperty("user.name");
  
                  // Check returned user name
  
                  if (!s1.equals(s2)) {
!                     throw new RuntimeException("wrong username, actual " + s1 +
+                                                " but expected value from property user.name is " + s2);
                  }
  
                  // Try setting the option: Read only
  
                  try {
< prev index next >