]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: arch: add option parsing check
authoroech3 <79379754+oech3@users.noreply.github.com>
Thu, 12 Feb 2026 16:24:13 +0000 (16:24 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 12 Feb 2026 16:26:44 +0000 (16:26 +0000)
* tests/misc/arch.sh: Ensure -- to indicate end of options is accepted.
https://github.com/coreutils/coreutils/pull/191

tests/misc/arch.sh

index 1700a22fa569039f43c382d757157680c09ef38b..68dc460449500b6acd13973ee4e7f5d17bee19d8 100755 (executable)
@@ -21,7 +21,9 @@ print_ver_ arch
 
 arch > out || fail=1
 uname -m > exp || fail=1
+compare exp out || fail=1
 
+arch -- > out || fail=1
 compare exp out || fail=1
 
 Exit $fail