git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] Use test-chmtime -v instead of perl in t5000 to get mtime of a file

From
Alex Riesen <raa.lkml@gmail.com>
Date
Oct 30, 2008, 11:27 UTC
Message-ID
<81b0412b0810300427l259fb8ddl6ef92ae9dc8aeace@mail.gmail.com>

The test was broken on admittedly broken combination of Windows, Cygwin, and ActiveState Perl.

Signed-off-by: Alex Riesen <ariesen@harmanbecker.com>
---
 t/t5000-tar-tree.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
From 1013c1a2b51a183bd0f6059b2e1a1ed68b2173d5 Mon Sep 17 00:00:00 2001
From: Alex Riesen <raa.lkml@gmail.com>
Date: Thu, 30 Oct 2008 11:20:27 +0100
Subject: [PATCH 2/2] Use test-chmtime -v instead of perl in t5000 to get mtime of a file

The test was broken on admittedly broken combination of Windows, Cygwin, and ActiveState Perl.

Signed-off-by: Alex Riesen <ariesen@harmanbecker.com>
---
 t/t5000-tar-tree.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
index 0f27d73..c942c8b 100755
--- a/t/t5000-tar-tree.sh
+++ b/t/t5000-tar-tree.sh
@@ -90,7 +90,7 @@ test_expect_success \
     'validate file modification time' \
     'mkdir extract &&
      "$TAR" xf b.tar -C extract a/a &&
-     perl -e '\''print((stat("extract/a/a"))[9], "\n")'\'' >b.mtime &&
+     test-chmtime -v +0 extract/a/a |cut -f 1 >b.mtime &&
      echo "1117231200" >expected.mtime &&
      diff expected.mtime b.mtime'
 
-- 
1.6.0.3.552.g4ff73
Message 1 of 1 in “Use test-chmtime -v instead of perl in t5000 to get mtime of a file”
  1. 2/2 Use test-chmtime -v instead of perl in t5000 to get mtime of a fileAlex Riesen, Oct 30, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.