Module Name: src Committed By: riastradh Date: Mon Aug 5 04:05:59 UTC 2024
Modified Files: src/tests/bin/pax: t_pax.sh Log Message: tests/bin/pax: Test pax(1) succeeds with empty file list on stdin. PR bin/41736: pax reports an error when copying zero files To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/bin/pax/t_pax.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/bin/pax/t_pax.sh diff -u src/tests/bin/pax/t_pax.sh:1.4 src/tests/bin/pax/t_pax.sh:1.5 --- src/tests/bin/pax/t_pax.sh:1.4 Mon Aug 5 04:05:51 2024 +++ src/tests/bin/pax/t_pax.sh Mon Aug 5 04:05:59 2024 @@ -1,4 +1,4 @@ -# $NetBSD: t_pax.sh,v 1.4 2024/08/05 04:05:51 riastradh Exp $ +# $NetBSD: t_pax.sh,v 1.5 2024/08/05 04:05:59 riastradh Exp $ # # Copyright (c) 2007, 2008 The NetBSD Foundation, Inc. # All rights reserved. @@ -48,6 +48,16 @@ append_body() { atf_check -s exit:0 -o empty -e empty cmp file1.tar file2.tar } +atf_test_case pr41736 +pr41736_head() +{ + atf_set "descr" "Test pax exits with 0 if stdin file list is empty" +} +pr41736_body() +{ + atf_check pax -rw . </dev/null +} + atf_test_case pr44498 pr44498_head() { @@ -67,5 +77,6 @@ pr44498_body() atf_init_test_cases() { atf_add_test_case append + atf_add_test_case pr41736 atf_add_test_case pr44498 }