From: Dmitry V. Levin Date: Wed, 13 Dec 2017 01:47:33 +0000 (+0000) Subject: tests: check error diagnostics when exec file name is too long X-Git-Tag: v4.21~267 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d55a53c75880718e46aef7ef0d971b8a15a7f0be;p=strace tests: check error diagnostics when exec file name is too long * tests/options-syntax.test: Check error diagnostics when exec file name length equals to PATH_MAX. --- diff --git a/tests/options-syntax.test b/tests/options-syntax.test index 2e459c96..a0700fe2 100755 --- a/tests/options-syntax.test +++ b/tests/options-syntax.test @@ -65,6 +65,8 @@ check_e_using_grep 'regcomp: \{id: [[:alpha:]].+' -e trace='/{id' check_e_using_grep 'regcomp: \(id: [[:alpha:]].+' -e trace='/(id' check_e_using_grep 'regcomp: \[id: [[:alpha:]].+' -e trace='/[id' +check_e_using_grep 'exec: File *name too long' "$(printf '%4096s' ' ')" + check_h 'must have PROG [ARGS] or -p PID' check_h 'PROG [ARGS] must be specified with -D' -D -p $$ check_h '-c and -C are mutually exclusive' -c -C true