Skip to content

Commit 07d3be0

Browse files
committed
Fix test
1 parent 3f888d2 commit 07d3be0

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

test/error

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../test/test_compound.bash

test/ok

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
./test_compound.bash
55
./test_others.bash
66
./test_job.bash
7+
../test/test_compound.bash
8+
../test/test_compound.bash
9+
../test/test_compound.bash

test/test_compound.bash

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,10 @@ $com -c '[[ -s /etc/passwdaaaa ]]'
661661
$com -c 'touch /tmp/$$-empty ; [[ -s /tmp/$$-empty ]]'
662662
[ "$?" = "0" ] || err $LINENO
663663

664-
$com -c '[[ -t 1 ]]'
665-
[ "$?" = "0" ] || err $LINENO
664+
if [[ -t 1 ]] ; then
665+
$com -c '[[ -t 1 ]]'
666+
[ "$?" = "0" ] || err $LINENO
667+
fi
666668

667669
$com -c '[[ -t 0 ]]'
668670
[ "$?" = "1" ] || err $LINENO

0 commit comments

Comments
 (0)