llvm-project/libcxx/test/std/experimental/filesystem/class.path/path.member
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
..
path.assign Implement P0392r0. Integrate filesystem::path and string_view. 2016-07-23 03:10:56 +00:00
path.construct Implement P0392r0. Integrate filesystem::path and string_view. 2016-07-23 03:10:56 +00:00
path.decompose
path.generic.obs
path.modifiers
path.native.obs Fix 3 bugs in filesystem tests and implementation. 2016-06-18 04:10:23 +00:00
path.query
path.append.pass.cpp Implement P0392r0. Integrate filesystem::path and string_view. 2016-07-23 03:10:56 +00:00
path.compare.pass.cpp libcxx: Fix path.compare.pass expected result 2016-08-15 21:24:50 +00:00
path.concat.pass.cpp Implement P0392r0. Integrate filesystem::path and string_view. 2016-07-23 03:10:56 +00:00