From 72945d9c8eee18aed1550c3f42dc41e6a8a0f029 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 22 Jul 2019 22:37:40 +0300 Subject: Use CLI-generated classes to parse testscript builtin options --- tests/test/script/builtin/sed.testscript | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tests/test/script/builtin/sed.testscript') diff --git a/tests/test/script/builtin/sed.testscript b/tests/test/script/builtin/sed.testscript index e3c0965..4a79fe3 100644 --- a/tests/test/script/builtin/sed.testscript +++ b/tests/test/script/builtin/sed.testscript @@ -4,6 +4,12 @@ .include ../common.testscript +: unknown-option +: +$c <"sed: unknown option '-u'" == 1 +EOI + : arg : { @@ -31,7 +37,7 @@ $c <'sed -e' && $b 2>>/EOE != 0 testscript:1:1: error: sed exit code 1 != 0 info: stderr: test/1/stderr - sed: missing script + sed: missing value for option '-e' info: test id: 1 EOE @@ -321,7 +327,7 @@ $c <"sed -i -e 's/a/b/'" && $b 2>>/EOE != 0 testscript:1:1: error: sed exit code 1 != 0 info: stderr: test/1/stderr - sed: -i option specified while reading from stdin + sed: -i|--in-place option specified while reading from stdin info: test id: 1 EOE -- cgit v1.1