llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs
Louis Dionne f3966eaf86 [libc++] Make the Debug mode a configuration-time only option
The debug mode has been broken pretty much ever since it was shipped
because it was possible to enable the debug mode in user code without
actually enabling it in the dylib, leading to ODR violations that
caused various kinds of failures.

This commit makes the debug mode a knob that is configured when
building the library and which can't be changed afterwards. This is
less flexible for users, however it will actually work as intended
and it will allow us, in the future, to add various kinds of checks
that do not assume the same ABI as the normal library. Furthermore,
this will make the debug mode more robust, which means that vendors
might be more tempted to support it properly, which hasn't been the
case with the current debug mode.

This patch shouldn't break any user code, except folks who are building
against a library that doesn't have the debug mode enabled and who try
to enable the debug mode in their code. Such users will get a compile-time
error explaining that this configuration isn't supported anymore.

In the future, we should further increase the granularity of the debug
mode checks so that we can cherry-pick which checks to enable, like we
do for unspecified behavior randomization.

Differential Revision: https://reviews.llvm.org/D122941
2022-06-07 16:33:53 -04:00
..
fs.op.absolute [libcxx] [test] Adjust separator form in fs.op.absolute for libc++ on windows 2021-03-09 16:57:26 +02:00
fs.op.canonical [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.copy [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.copy_file [libc++] Add back-deployment testing on arm64 macs 2022-04-07 10:15:40 -04:00
fs.op.copy_symlink [libcxx] [test] Call create_directory_symlink where relevant 2020-11-10 10:39:15 +02:00
fs.op.create_directories [libc++] Add back-deployment testing on arm64 macs 2022-04-07 10:15:40 -04:00
fs.op.create_directory [libc++] Add back-deployment testing on arm64 macs 2022-04-07 10:15:40 -04:00
fs.op.create_directory_symlink [libcxx] [test] Call create_directory_symlink where relevant 2020-11-10 10:39:15 +02:00
fs.op.create_hard_link
fs.op.create_symlink [libcxx] Sanitize paths before creating symlinks on windows 2021-01-29 13:39:30 +02:00
fs.op.current_path [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.equivalent [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.exists [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.file_size [libc++] Add back-deployment testing on arm64 macs 2022-04-07 10:15:40 -04:00
fs.op.hard_lk_ct [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.is_block_file [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.is_char_file [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.is_directory [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.is_empty [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.is_fifo [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.is_other [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.is_regular_file [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.is_socket [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.is_symlink [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.last_write_time [libc++] Add back-deployment testing on arm64 macs 2022-04-07 10:15:40 -04:00
fs.op.permissions [libc++][AIX] AIX allows for changing permissions of symlinks 2022-03-21 14:39:37 -04:00
fs.op.proximate [libc++] Make the Debug mode a configuration-time only option 2022-06-07 16:33:53 -04:00
fs.op.read_symlink [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.relative [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.remove [libcxx] [test] Ifdef out tests that rely on perms::none on directories for triggering errors 2021-04-19 23:03:12 +03:00
fs.op.remove_all [runtimes] Rename various libcpp-has-no-XYZ Lit features to just no-XYZ 2022-05-27 15:24:45 -04:00
fs.op.rename [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.resize_file [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.space [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.status [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.status_known
fs.op.symlink_status [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00
fs.op.temp_dir_path [libcxx] [test] Use GetWindowsInaccessibleDir() in a couple more tests 2021-04-09 21:24:34 +03:00
fs.op.weakly_canonical [libc++][AIX] Do not assert chmod return value is non-zero. 2022-01-24 10:30:05 -05:00