Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Oct 2015 23:50:02 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r288675 - user/ngie/more-tests/bin/ls/tests
Message-ID:  <201510042350.t94No2Br086828@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 }



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