]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Avoid test failure when run with an unusual umask.
authorJim Meyering <jim@meyering.net>
Fri, 4 May 2007 11:32:46 +0000 (13:32 +0200)
committerJim Meyering <jim@meyering.net>
Fri, 4 May 2007 11:32:46 +0000 (13:32 +0200)
* tests/ls/color-dtype-dir: Set umask to 022.
Suggestion from AIDA Shinra.

ChangeLog
tests/ls/color-dtype-dir

index bd1b30445bc932f079183deeb431d5a2f5ef065e..6fefea019e83a5e6fe410aa66df5700aecca65e0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-05-04  Jim Meyering  <jim@meyering.net>
 
+       Avoid test failure when run with an unusual umask.
+       * tests/ls/color-dtype-dir: Set umask to 022.
+       Suggestion from AIDA Shinra.
+
        Avoid failure of root-only test when run with a restrictive umask.
        * tests/rm/no-give-up: Ensure that non-root can access "d/" through
        root-owned ".".  Reported by AIDA Shinra.
index f3f9ee9fd4714968e0521515107b2d15878f3c82..41c8bf3de43baba478e52e8fa203bd2205af9552 100755 (executable)
@@ -4,7 +4,7 @@
 # directories the same as the first one -- but only on a file system
 # with dirent.d_type support.
 
-# Copyright (C) 2006 Free Software Foundation, Inc.
+# Copyright (C) 2006-2007 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -33,6 +33,9 @@ t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
 trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
 trap '(exit $?); exit $?' 1 2 13 15
 
+# Don't let a different umask perturb the results.
+umask 22
+
 framework_failure=0
 mkdir -p $tmp || framework_failure=1
 cd $tmp || framework_failure=1