Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2017 21:41:00 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r311997 - stable/11/bin/ls/tests
Message-ID:  <201701122141.v0CLf0tt079919@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Thu Jan 12 21:41:00 2017
New Revision: 311997
URL: https://svnweb.freebsd.org/changeset/base/311997

Log:
  MFC r310118
  
  Fix ls_tests:o_flag with ZFS TMPDIR
  
  Unlike UFS or TMPFS, ZFS sets uarch automatically whenever a file is
  updated. The test must explicitly clear uarch to be portable across
  filesystems. Also, it doesn't need to run as root.

Modified:
  stable/11/bin/ls/tests/ls_tests.sh
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/bin/ls/tests/ls_tests.sh
==============================================================================
--- stable/11/bin/ls/tests/ls_tests.sh	Thu Jan 12 21:18:43 2017	(r311996)
+++ stable/11/bin/ls/tests/ls_tests.sh	Thu Jan 12 21:41:00 2017	(r311997)
@@ -689,7 +689,6 @@ atf_test_case o_flag
 o_flag_head()
 {
 	atf_set "descr" "Verify that the output from ls -o prints out the chflag values or '-' if none are set"
-	atf_set "require.user" "root"
 }
 
 o_flag_body()
@@ -703,6 +702,7 @@ o_flag_body()
 	atf_check -e ignore -o empty -s exit:0 dd if=/dev/zero of=b.file \
 	    bs=$size count=1
 	atf_check -e empty -o empty -s exit:0 chflags uarch a.file
+	atf_check -e empty -o empty -s exit:0 chflags 0 b.file
 
 	atf_check -e empty -o match:"[[:space:]]+uarch[[:space:]]$size+.+a\\.file" \
 	    -s exit:0 ls -lo a.file



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701122141.v0CLf0tt079919>