From 26814cf8e636d7c7c057da310a27cb2993d46a76 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Fri, 10 Aug 2018 23:08:30 -0700 Subject: test: fix cctest URLTest.ToFilePath on Win32 without Intl Skip one specific test that requires ICU Fixes: https://github.com/nodejs/node/issues/19051 PR-URL: https://github.com/nodejs/node/pull/22265 Reviewed-By: Joyee Cheung Reviewed-By: Richard Lau Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Ruben Bridgewater --- test/cctest/test_url.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/cctest') diff --git a/test/cctest/test_url.cc b/test/cctest/test_url.cc index 0b80d44caa..088634152a 100644 --- a/test/cctest/test_url.cc +++ b/test/cctest/test_url.cc @@ -88,7 +88,12 @@ TEST_F(URLTest, ToFilePath) { T("file:///C:/Program%20Files/", "C:\\Program Files\\"); T("file:///C:/a/b/c?query#fragment", "C:\\a\\b\\c"); T("file://host/path/a/b/c?query#fragment", "\\\\host\\path\\a\\b\\c"); +#if defined(NODE_HAVE_I18N_SUPPORT) T("file://xn--weird-prdj8vva.com/host/a", "\\\\wͪ͊eiͬ͋rd.com\\host\\a"); +#else + T("file://xn--weird-prdj8vva.com/host/a", + "\\\\xn--weird-prdj8vva.com\\host\\a"); +#endif T("file:///C:/a%2Fb", ""); T("file:///", ""); T("file:///home", ""); -- cgit v1.2.3