Skip to content

Commit 601301f

Browse files
committed
chore: update test to have better syntax error
In the latest version of bash, it's now allowed to write such a function, so this test relying on this being a syntax error is incorrect. We update it with a new bash syntax error and remove useless comamnds. Signed-off-by: Ali Caglayan <[email protected]>
1 parent 172d872 commit 601301f

File tree

1 file changed

+3
-2
lines changed
  • test/blackbox-tests/test-cases/cram

1 file changed

+3
-2
lines changed

test/blackbox-tests/test-cases/cram/gh4230.t

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ Syntax error inside a cram command
55
> EOF
66

77
$ cat >t1.t <<EOF
8-
> $ foo-bar() { true; }
8+
> $ if then fi
99
> EOF
1010

11-
$ dune runtest --auto-promote 2>&1 | sed -E -e 's/.+\.sh:/$SUBTEST.sh:/' -e 's/cd.*\&\&.*.sh/cd $DIR \&\& $SUBTEST.sh/'
11+
$ dune runtest --auto-promote
1212
File "t1.t", line 1, characters 0-0:
1313
Error: Files _build/default/t1.t and _build/default/t1.t.corrected differ.
1414
Promoting _build/default/t1.t.corrected to t1.t.
15+
[1]
1516

1617
$ cat >t1.t <<EOF
1718
> $ exit 1

0 commit comments

Comments
 (0)