shithub: regress

Download patch

ref: 0e9fc18398b15c81a26de4bac1c41f7afb15edd3
parent: bdc2815d2b4b4481d884df0a581e44d34af443d6
author: Ori Bernstein <[email protected]>
date: Thu Jun 25 12:56:51 EDT 2020

Use a fixed timezone in date tests.

duh.

--- a/cmd/date.rc
+++ b/cmd/date.rc
@@ -30,6 +30,15 @@
 check '23 may 2011 edt'			1306123200
 check '23 may 2011 gmt'			1306108800
 
+# If the tz is present, the results should stay
+# the same if we change zones.
+@{
+	rfork en
+	cat /adm/timezone/US_Pacific >/env/timezone
+	check '23 may 2011 edt'			1306123200
+	check '23 may 2011 gmt'			1306108800
+}
+
 # now with all variations on times.
 check 'may 23 2011 0'			1306108800
 check 'may 23 2011 0:1'			1306108860