llvm-project/libcxx/test/std/experimental
Adhemerval Zanella ced7928069 libcxx: Fix path.compare.pass expected result
The expected 'filesystem::path::compare' result states that for different
path only result sign contains the information about passed arguments
(not its integer value).  This is due it uses the output of other compare
functions (basic_string_view and char_traits) without further handling and
char_traits uses memcmp for final buffer comparison.

However for GLIBC on AArch64 the code:

  int ret = memcmp ("b/a/c", "a/b/c", 1);

Results in '64' where for x86_64 it results in '1'.

This patch fixes the expected 'filesystem::path::compare' by normalizing
all the results before assert comparison.

llvm-svn: 278745
2016-08-15 21:24:50 +00:00
..
algorithms Fix various undefined behavior found by UBSan. 2016-06-19 07:08:27 +00:00
any [libcxx] Add std::any 2016-08-11 03:13:11 +00:00
filesystem libcxx: Fix path.compare.pass expected result 2016-08-15 21:24:50 +00:00
func Remove trailing whitespace in test suite. Approved by Marshall Clow. 2016-06-01 21:35:39 +00:00
iterator Remove trailing whitespace in test suite. Approved by Marshall Clow. 2016-06-01 21:35:39 +00:00
memory Implement p0337r0. Delete operator= for polymorphic_allocator. 2016-06-27 00:55:25 +00:00
numeric Implement LCM and GCD for Library Fundamentals. Reviewed as https://reviews.llvm.org/D21343. 2016-07-26 14:28:34 +00:00
optional Fix std::experimental::optional tests. Patch from Casey Carter. 2016-07-17 20:32:30 +00:00
string.view Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 2016-06-14 21:31:42 +00:00
utilities Move more _LIBCPP_VERSION tests to test/libcxx. 2016-06-22 02:07:26 +00:00
nothing_to_do.pass.cpp