--- old/test/jdk/java/awt/event/KeyEvent/KeyMaskTest/KeyMaskTest.java 2020-05-20 18:05:50.780809031 -0700 +++ new/test/jdk/java/awt/event/KeyEvent/KeyMaskTest/KeyMaskTest.java 2020-05-20 18:05:50.400801734 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 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 @@ -164,7 +164,7 @@ int keys[]; String OS = System.getProperty("os.name").toLowerCase(); System.out.println(OS); - if (OS.contains("os x") || OS.contains("sunos")) { + if (OS.contains("os x")) { keys = new int[] {KeyEvent.VK_SHIFT, KeyEvent.VK_CONTROL, KeyEvent.VK_ALT, KeyEvent.VK_META}; } else { keys = new int[] {KeyEvent.VK_SHIFT, KeyEvent.VK_CONTROL, KeyEvent.VK_ALT};