HADOOP-11916. TestStringUtils#testLowerAndUpperStrings failed on MAC due to a JVM bug. Contributed by Ming Ma.
(cherry picked from commit 338e88a19e
)
This commit is contained in:
parent
4e96175b33
commit
aefadb838c
|
@ -141,6 +141,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
|
|
||||||
HADOOP-11900. Add failIfNoTests=false to hadoop-build-tools pom. (gera)
|
HADOOP-11900. Add failIfNoTests=false to hadoop-build-tools pom. (gera)
|
||||||
|
|
||||||
|
HADOOP-11916. TestStringUtils#testLowerAndUpperStrings failed on MAC
|
||||||
|
due to a JVM bug. (Ming Ma via ozawa)
|
||||||
|
|
||||||
Release 2.7.1 - UNRELEASED
|
Release 2.7.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -37,6 +37,7 @@ import java.util.regex.Pattern;
|
||||||
|
|
||||||
import org.apache.hadoop.test.UnitTestcaseTimeLimit;
|
import org.apache.hadoop.test.UnitTestcaseTimeLimit;
|
||||||
import org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix;
|
import org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix;
|
||||||
|
import org.junit.Assume;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class TestStringUtils extends UnitTestcaseTimeLimit {
|
public class TestStringUtils extends UnitTestcaseTimeLimit {
|
||||||
|
@ -416,6 +417,9 @@ public class TestStringUtils extends UnitTestcaseTimeLimit {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testLowerAndUpperStrings() {
|
public void testLowerAndUpperStrings() {
|
||||||
|
// Due to java bug http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8047340,
|
||||||
|
// The test will fail with Turkish locality on Mac OS.
|
||||||
|
Assume.assumeTrue(Shell.LINUX);
|
||||||
Locale defaultLocale = Locale.getDefault();
|
Locale defaultLocale = Locale.getDefault();
|
||||||
try {
|
try {
|
||||||
Locale.setDefault(new Locale("tr", "TR"));
|
Locale.setDefault(new Locale("tr", "TR"));
|
||||||
|
|
Loading…
Reference in New Issue