util-linux/tests/expected/rename
Mauricio Faria de Oliveira ff84ba8b03 rename: tests: add more symlink checks
Add a few checks to the symlink test, including for the fix
in commit 477239ce0d ("rename: fix regression for symlink
with non-existing target").

Tested with './tests/run.sh rename/symlink' before/after that
commit with FAILED/OK results (and '--show-diff') as expected:

After:
       rename: symlink check                  ... OK

Before:
       rename: symlink check                  ... FAILED (rename/symlink)

With --show-diff:

    diff-{{{
    --- /home/mfo/git/util-linux/tests/expected/rename/symlink	2020-07-14 15:21:06.412792160 -0300
    +++ /home/mfo/git/util-linux/tests/output/rename/symlink	2020-07-14 15:45:10.980927233 -0300
    @@ -3,5 +3,3 @@
     rename_slink.3: `old' -> `new'
     `rename_slink.1' -> `rename_symlink.1'
     target
    -`rename_slink.2' -> `rename_symlink.2'
    -target
    }}}-diff

    diff-{{{
    --- /home/mfo/git/util-linux/tests/expected/rename/symlink.err	2020-07-14 15:37:42.466207786 -0300
    +++ /home/mfo/git/util-linux/tests/output/rename/symlink.err	2020-07-14 15:45:10.984927251 -0300
    @@ -1 +1,2 @@
    +rename: rename_slink.2: not accessible: No such file or directory
     rename: rename_slink.3: No such file or directory
    }}}-diff

Signed-off-by: Mauricio Faria de Oliveira <mfo@canonical.com>
2020-07-14 15:51:47 -03:00
..
basic tests: add rename(1) checks 2014-07-18 18:34:15 +01:00
exit_codes tests: remove unbuffered ts_run feature 2019-08-30 16:30:35 +02:00
exit_codes.err tests: remove unbuffered ts_run feature 2019-08-30 16:30:35 +02:00
overwrite rename: use access(3) to check if a file exists 2017-12-04 13:04:12 +01:00
subdir tests: add fullpath tests to rename/subdir 2015-06-25 12:01:33 +02:00
symlink rename: tests: add more symlink checks 2020-07-14 15:51:47 -03:00
symlink.err rename: tests: add more symlink checks 2020-07-14 15:51:47 -03:00