From 2878724ce3ac8cc0ead67f0481f6679cda9e6da1 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 19 Sep 2018 10:02:53 +0200 Subject: [PATCH] Add test --- test/bats.bats | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/bats.bats b/test/bats.bats index f1aff29..19c7bea 100755 --- a/test/bats.bats +++ b/test/bats.bats @@ -262,3 +262,13 @@ fixtures bats [ $status -eq 0 ] [ "${lines[1]}" = "ok 1 loop_func" ] } + +@test "abs_dirname with symlink to same current directory" { + cd "$TMP" + ln -s $(which bats) bats + ln -s bats bats-linked + run ./bats-linked "$FIXTURE_ROOT/loop_keep_IFS.bats" + [ $status -eq 0 ] + expected_lines=("1..1" "ok 1 loop_func") + [ "${lines}" = "${expected_lines}" ] +}