From 17720c10cd73b71230f309137c437bf3aad7b6f5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 28 Mar 2008 14:14:04 +0100 Subject: Require that "(exit $fail); exit $fail" be last line of each test. * maint.mk (sc_require_test_exit_idiom): New rule to enforce policy. * tests/cp/acl: Adhere to the new policy. * tests/cp/preserve-gid: Likewise. * tests/dd/misc: * tests/install/create-leading: * tests/ln/sf-1: * tests/ls/symlink-slash: * tests/misc/help-version: * tests/misc/ls-time: * tests/misc/nice: * tests/misc/shred-remove: * tests/misc/stty: * tests/misc/stty-row-col: * tests/mkdir/p-1: * tests/mkdir/p-2: * tests/mkdir/p-3: * tests/mkdir/p-v: * tests/mkdir/special-1: * tests/mkdir/writable-under-readonly: * tests/mv/acl: * tests/mv/backup-is-src: * tests/mv/diag: * tests/mv/dir-file: * tests/mv/force: * tests/mv/hard-link-1: * tests/mv/i-2: * tests/mv/i-4: * tests/mv/into-self: * tests/mv/into-self-2: * tests/mv/into-self-3: * tests/mv/partition-perm: * tests/mv/to-symlink: * tests/rmdir/ignore: * tests/tail-2/assert: * tests/tail-2/assert-2: * tests/touch/dangling-symlink: * tests/touch/dir-1: * tests/touch/empty-file: * tests/touch/fifo: * tests/touch/no-rights: Likewise. Signed-off-by: Jim Meyering --- tests/cp/preserve-gid | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/cp/preserve-gid') diff --git a/tests/cp/preserve-gid b/tests/cp/preserve-gid index da0005612..d78582942 100755 --- a/tests/cp/preserve-gid +++ b/tests/cp/preserve-gid @@ -99,4 +99,5 @@ t1 b1 "$nameless_uid" "$nameless_gid2" cp -p t1 c0 "$nameless_uid" "$nameless_gid1" cp -p t1 c1 "$nameless_uid" "$nameless_gid2" cp -p -(exit 0); exit 0 +fail=0 +(exit $fail); exit $fail -- cgit v1.2.3-54-g00ecf