]> granicus.if.org Git - strace/commitdiff
tests: check error diagnostics when exec file name is too long
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 13 Dec 2017 01:47:33 +0000 (01:47 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 14 Dec 2017 00:05:04 +0000 (00:05 +0000)
* tests/options-syntax.test: Check error diagnostics when
exec file name length equals to PATH_MAX.

tests/options-syntax.test

index 2e459c9641a5a9a5c10c7ea837c0055e5845fe82..a0700fe2d13ac8762187e196e147e573f6b67f70 100755 (executable)
@@ -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