mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 06:42:45 +00:00
Add a test for r185231.
This commit is contained in:
parent
94c53a0811
commit
a5e27424dd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185232
9
tools/regression/bin/sh/parameters/exitstatus1.0
Normal file
9
tools/regression/bin/sh/parameters/exitstatus1.0
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
f() {
|
||||||
|
[ $? = $1 ] || exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
true
|
||||||
|
f 0
|
||||||
|
false
|
||||||
|
f 1
|
Loading…
Reference in New Issue
Block a user