/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/* @test
* @bug 7130915
* @library ../
* @build MacPathTest
* @run shell MacPathTest.sh
*/
public class MacPathTest {
return;
// English
"dir_macosx", // dir
"file_macosx"); // file
// Japanese composite character
test("TestDir_\u30c8\u30a4\u30e4\u30cb\u30ca\u30eb/",
"dir_\u30a4\u30c1\u30b4\u306e\u30b1\u30fc\u30ad",
"file_\u30a4\u30c1\u30b4\u306e\u30b1\u30fc\u30ad");
// latin-1 supplementory
test("TestDir_K\u00f6rperlich\u00e4\u00df/",
"dir_Entt\u00e4uschung",
"file_Entt\u00e4uschung");
test("TestDir_K\u00f6rperlich\u00e4\u00df/",
"dir_Entt\u00c4uschung",
"file_Entt\u00c4uschung");
// Korean syblla
test("TestDir_\uac00\uac01\uac02",
"dir_\uac20\uac21\uac22",
"file_\uacc0\uacc1\uacc2");
}
}
return true;
} else {
}
return false;
}
throws Throwable
{
//////////////////////////////////////////////////////////////
throw new RuntimeException("Files.isDirectory(...) failed");
}
//////////////////////////////////////////////////////////////
// write out with nfd, read in with nfc + case
// check attrs with nfc + case
throw new RuntimeException("Files.getPosixfilePermission(...) failed");
}
// write out with nfc, read in with nfd + case
// check attrs with nfc + case
throw new RuntimeException("Files.getPosixfilePermission(...) failed");
}
//////////////////////////////////////////////////////////////
boolean found_dir = false;
boolean found_file_nfc = false;
boolean found_file_nfd = false;
}
}
throw new RuntimeException("File.equal() failed");
}
// glob
boolean globmatched = false;
}
}
if (!globmatched) {
//throw new RuntimeException("path matcher failed");
// it appears we have a regex.anon_eq bug in hangul syllable handling
.matches());
.matches());
}
}
}