--- old/test/jdk/sun/security/jca/PreferredProviderNegativeTest.java 2020-05-20 18:07:19.778517852 -0700 +++ new/test/jdk/sun/security/jca/PreferredProviderNegativeTest.java 2020-05-20 18:07:19.386510325 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 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 @@ -107,12 +107,7 @@ String expected; String value = args[1]; - // If OS is solaris, expect OracleUcrypto, otherwise SunJCE - if (System.getProperty("os.name").toLowerCase().contains("sun")) { - expected = "OracleUcrypto"; - } else { - expected = "SunJCE"; - } + expected = "SunJCE"; if (args.length >= 2) { switch (args[0]) {