Module Name:    src
Committed By:   rillig
Date:           Thu Aug 25 06:23:38 UTC 2022

Modified Files:
        src/usr.bin/make/unit-tests: Makefile

Log Message:
tests/make: fix canonicalization for single-digit day of month


To generate a diff of this commit:
cvs rdiff -u -r1.320 -r1.321 src/usr.bin/make/unit-tests/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/unit-tests/Makefile
diff -u src/usr.bin/make/unit-tests/Makefile:1.320 src/usr.bin/make/unit-tests/Makefile:1.321
--- src/usr.bin/make/unit-tests/Makefile:1.320	Wed Aug 24 22:09:41 2022
+++ src/usr.bin/make/unit-tests/Makefile	Thu Aug 25 06:23:38 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.320 2022/08/24 22:09:41 rillig Exp $
+# $NetBSD: Makefile,v 1.321 2022/08/25 06:23:38 rillig Exp $
 #
 # Unit tests for make(1)
 #
@@ -621,8 +621,10 @@ STD_SED_CMDS.shell+=		-e 's,^${.SHELL:T}
 STD_SED_CMDS.regex= \
 	-e 's,\(Regex compilation error:\).*,\1 (details omitted),'
 
+# Normalize timestamps from ':gmtime' or ':localtime' to '<timestamp>'.
+# See STD_SED_CMDS.dg2 for timestamps from the debug log.
 STD_SED_CMDS.timestamp= \
-	-e 's,[A-Z][a-z][a-z] [A-Z][a-z][a-z] [0-9][0-9]* [0-9][0-9]*:[0-9][0-9]:[0-9][0-9] 20[0-9][0-9],<timestamp>,'
+	-e 's,[A-Z][a-z][a-z] [A-Z][a-z][a-z] [ 0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [12][0-9][0-9][0-9],<timestamp>,'
 
 # End of the configuration helpers section.
 

Reply via email to