Skip to content

Commit 136b4d2

Browse files
committed
Fix test
1 parent 0411268 commit 136b4d2

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

test/error

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +0,0 @@
1-
./test_others.bash
2-
../../../test/test_others.bash
3-
../../../test/test_others.bash
4-
../../../test/test_others.bash
5-
../../../test/test_others.bash
6-
../../../test/test_others.bash
7-
../../../test/test_others.bash
8-
../../../test/test_others.bash

test/ok

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
./test_builtins.bash
33
./test_brace.bash
44
./test_compound.bash
5+
./test_others.bash
56
./test_job.bash
6-
../../../test/test_others.bash
7-
../../../test/test_others.bash
8-
../../../test/test_others.bash
9-
../../../test/test_others.bash
10-
../../../test/test_others.bash
11-
../../../test/test_others.bash
12-
../../../test/test_others.bash
7+
./test/test_compound.bash
8+
./test/test_compound.bash

test/test_compound.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,11 +763,11 @@ res=$($com -c '[[ /etc/passwd -ef /tmp/aaaaa ]]')
763763
res=$($com -c '[[ /etc/aaaaaa -ef /etc/passwd ]]')
764764
[ "$?" = "1" ] || err $LINENO
765765

766-
res=$($com -c 'touch /tmp/$$ ; touch /tmp/$$x; [[ /tmp/$$x -nt /tmp/$$ ]]')
766+
res=$($com -c 'touch /tmp/$$ ; sleep 0.01 ; touch /tmp/$$x; [[ /tmp/$$x -nt /tmp/$$ ]]')
767767
[ "$?" = "0" ] || err $LINENO
768768
rm -f /tmp/$$*
769769

770-
res=$($com -c 'touch /tmp/$$ ; touch /tmp/$$x; [[ /tmp/$$ -nt /tmp/$$x ]]')
770+
res=$($com -c 'touch /tmp/$$ ; sleep 0.01 ; touch /tmp/$$x; [[ /tmp/$$ -nt /tmp/$$x ]]')
771771
[ "$?" = "1" ] || err $LINENO
772772
rm -f /tmp/$$*
773773

0 commit comments

Comments
 (0)