]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: expr: add short-circuit tests with parenthesized branches
authorSylvestre Ledru <sylvestre@debian.org>
Fri, 3 Apr 2026 10:07:44 +0000 (12:07 +0200)
committerPádraig Brady <P@draigBrady.com>
Mon, 6 Apr 2026 17:22:56 +0000 (18:22 +0100)
commit793f45e916cb12bf47c4c8dbc8cecfaf3510b1c6
tree2d22ef6800f9509461a51618053fd20679219a28
parent829593317db7768153eee864d46fcb4509360f88
tests: expr: add short-circuit tests with parenthesized branches

* tests/expr/expr.pl: Add tests to verify that short-circuit
evaluation of | and & correctly skips parenthesized dead branches,
including nested parenthesized expressions containing division by zero.
https://github.com/uutils/coreutils/pull/11395
https://github.com/coreutils/coreutils/pull/238
tests/expr/expr.pl