testsuite: add file system test suite test_symlinks.sh

This commit is contained in:
Markus F.X.J. Oberhumer
2023-09-06 00:09:44 +02:00
parent 38d6cb090c
commit 92dfb9c83c
8 changed files with 438 additions and 34 deletions
+2 -1
View File
@@ -201,7 +201,8 @@ static void check_and_update_options(int i, int argc) {
check_not_both(opt->force_overwrite, opt->preserve_link, "--force-overwrite", "--link");
check_not_both(opt->to_stdout, opt->preserve_link, "--stdout", "--link");
#if defined(__unix__) && !defined(__MSYS2__)
#if defined(__unix__)
static_assert(HAVE_LSTAT);
#else
// preserve_link is currently silently ignored on non-Unix platforms
// (we may revisit this decision later if there is some actual use-case)