diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-07-21 22:59:06 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-07-21 22:59:06 +0000 |
commit | fb870e671a3a1214813c3140197ff30443f1e463 (patch) | |
tree | c2a7ca3cae1c21cf6db0e363bdfdcea96b0afc9a /regress/bin | |
parent | f179b9898d07f51cd6a5261fad5e384741243bf6 (diff) |
Test that "cpio -o" does not segfault when called with no input.
Diffstat (limited to 'regress/bin')
-rw-r--r-- | regress/bin/pax/Makefile | 4 | ||||
-rw-r--r-- | regress/bin/pax/t6.sh | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/regress/bin/pax/Makefile b/regress/bin/pax/Makefile index 7a362f82451..aa8ad2295ea 100644 --- a/regress/bin/pax/Makefile +++ b/regress/bin/pax/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.5 2006/01/25 17:42:08 markus Exp $ +# $OpenBSD: Makefile,v 1.6 2006/07/21 22:59:05 ray Exp $ -TESTSCRIPTS=t1 t2 t3 t4 t5 +TESTSCRIPTS=t1 t2 t3 t4 t5 t6 .for t in ${TESTSCRIPTS} REGRESS_TARGETS+=t-${t} diff --git a/regress/bin/pax/t6.sh b/regress/bin/pax/t6.sh new file mode 100644 index 00000000000..ff08466d9d7 --- /dev/null +++ b/regress/bin/pax/t6.sh @@ -0,0 +1,6 @@ +# $OpenBSD: t6.sh,v 1.1 2006/07/21 22:59:05 ray Exp $ +# Don't segfault if no file list is given. +# +OBJ=$2 +cd ${OBJ} +cpio -o < /dev/null |