From 32cac452a834605a15a679e247f0f5faf3f2fc5d Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 16 May 2018 18:22:22 +0300 Subject: Redo testscript diagnostics not to rely on invalid paths --- tests/test/script/runner/set.test | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test/script/runner/set.test b/tests/test/script/runner/set.test index aebe9cb..b90bb14 100644 --- a/tests/test/script/runner/set.test +++ b/tests/test/script/runner/set.test @@ -254,7 +254,8 @@ $c <>EOE != 0 set -w x baz EOI - testscript:1:1: (x):1:1: error: expected '[' instead of 'x' + :1:1: error: expected '[' instead of 'x' + testscript:1:1: info: while parsing attributes 'x' EOE : unknown @@ -262,7 +263,8 @@ $c <>EOE != 0 set -w [x] baz EOI - testscript:1:1: ([x]):1:1: error: unknown value attribute x + :1:1: error: unknown value attribute x + testscript:1:1: info: while parsing attributes '[x]' EOE : junk @@ -270,6 +272,7 @@ $c <>EOE != 0 set -w '[string] x' baz EOI - testscript:1:1: ([string] x):1:10: error: trailing junk after ']' + :1:10: error: trailing junk after ']' + testscript:1:1: info: while parsing attributes '[string] x' EOE } -- cgit v1.1