Skip to content
  • Johannes Sixt's avatar
    tests: use test_ln_s_add to remove SYMLINKS prerequisite (trivial cases) · 889c6f0e
    Johannes Sixt authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    There are many instances where the treatment of symbolic links in the
    object model and the algorithms are tested, but where it is not
    necessary to actually have a symbolic link in the worktree. Make
    adjustments to the tests and remove the SYMLINKS prerequisite when
    appropriate in trivial cases, where "trivial" means:
    
    - merely a replacement of 'ln -s a b && git add b' by test_ln_s_add
      is needed;
    
    - a test for symbolic link on the file system can be split off (and
      remains protected by SYMLINKS);
    
    - existing code is equivalent to test_ln_s_add.
    
    Signed-off-by: default avatarJohannes Sixt <j6t@kdbg.org>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    889c6f0e