8206350: java/util/Locale/bcp47u/SystemPropertyTests.java failed on Mac 10.13 with zh_CN and zh_TW locales

Reviewed-by: rriggs
This commit is contained in:
Naoto Sato 2018-07-05 14:23:45 -07:00
parent 943be51fe7
commit 10fca535db

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2018, 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
@ -47,6 +47,7 @@ import org.testng.annotations.Test;
public class SystemPropertyTests {
private static String LANGPROP = "-Duser.language=en";
private static String SCPTPROP = "-Duser.script=";
private static String CTRYPROP = "-Duser.country=US";
@DataProvider(name="data")
@ -88,7 +89,7 @@ public class SystemPropertyTests {
@Test(dataProvider="data")
public void runTest(String extprop, String defLoc,
String defFmtLoc, String defDspLoc) throws Exception {
int exitValue = executeTestJava(LANGPROP, CTRYPROP,
int exitValue = executeTestJava(LANGPROP, SCPTPROP, CTRYPROP,
extprop, "DefaultLocaleTest", defLoc, defFmtLoc, defDspLoc)
.outputTo(System.out)
.errorTo(System.out)