svn commit: r288675 - user/ngie/more-tests/bin/ls/tests

Garrett Cooper ngie at FreeBSD.org
Sun Oct 4 23:50:03 UTC 2015


Author: ngie
Date: Sun Oct  4 23:50:02 2015
New Revision: 288675
URL: https://svnweb.freebsd.org/changeset/base/288675

Log:
  Fix the ls -l testcase

Modified:
  user/ngie/more-tests/bin/ls/tests/ls_tests.sh

Modified: user/ngie/more-tests/bin/ls/tests/ls_tests.sh
==============================================================================
--- user/ngie/more-tests/bin/ls/tests/ls_tests.sh	Sun Oct  4 23:41:08 2015	(r288674)
+++ user/ngie/more-tests/bin/ls/tests/ls_tests.sh	Sun Oct  4 23:50:02 2015	(r288675)
@@ -602,9 +602,9 @@ l_flag_body()
 	atf_check -e empty -o empty -s exit:0 touch a.file
 
 	birthtime_in_secs=$(stat -f "%B" -t "%s" a.file)
-	birthtime=$(date -j -f "%s" $birthtime_in_secs +"[[:space:]]+%b[[:space:]]+%e[[:space:]]+%H:%M")
+	birthtime=$(date -j -f "%s" $birthtime_in_secs +"%b[[:space:]]+%e[[:space:]]+%H:%M")
 
-	expected_output=$(stat -f "%Sp[[:space:]]+%i%Su[[:space:]]+%Sg[[:space:]]+%z[[:space:]]+$birthtime[[:space:]]+a\\.file")
+	expected_output=$(stat -f "%Sp[[:space:]]+%l[[:space:]]+%Su[[:space:]]+%Sg[[:space:]]+%z[[:space:]]+$birthtime[[:space:]]+a\\.file" a.file)
 
 	atf_check -e empty -o match:"$expected_output" -s exit:0 ls -l a.file
 }


More information about the svn-src-user mailing list