[libcxx] [test] Allow fs::permissions(path, perms, perm_options, error_code) to be...
authorMartin Storsjö <martin@martin.st>
Mon, 19 Oct 2020 08:46:58 +0000 (11:46 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 19 Oct 2020 21:07:01 +0000 (00:07 +0300)
commite2ddd515abd1735a3a8c075f2e6e487872cb8a4f
tree742566c6974a63eec655cd97b705ee359679545f
parentc61c7ba595d39f22a2f5a900e165ae464015c2e7
[libcxx] [test] Allow fs::permissions(path, perms, perm_options, error_code) to be noexcept

The standard doesn't declare this overload as noexcept, but doesn't
either say that it strictly cannot be noexcept either. The function
doesn't throw on errors that are signaled via error_code, but the
standard says that it may throw a bad_alloc.

This fixes an error with libstdc++ on linux.

Differential Revision: https://reviews.llvm.org/D89678
libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.permissions/permissions.pass.cpp