public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, libgo]: Fix FAIL: time testsuite failure
@ 2016-10-18  9:19 Uros Bizjak
  2016-10-18 12:10 ` Uros Bizjak
  2016-10-28 20:08 ` Ian Lance Taylor
  0 siblings, 2 replies; 5+ messages in thread
From: Uros Bizjak @ 2016-10-18  9:19 UTC (permalink / raw)
  To: gcc-patches; +Cc: Ian Taylor

[-- Attachment #1: Type: text/plain, Size: 139 bytes --]

The name of Etc/GMT+1 timezone is "-01", as evident from:

$ TZ=Etc/GMT+1 date +%Z
-01

Attached patch fixes the testsuite failure.

Uros.

[-- Attachment #2: g.diff.txt --]
[-- Type: text/plain, Size: 657 bytes --]

diff --git a/libgo/go/time/time_test.go b/libgo/go/time/time_test.go
index b7ebb37..694e311 100644
--- a/libgo/go/time/time_test.go
+++ b/libgo/go/time/time_test.go
@@ -939,8 +939,8 @@ func TestLoadFixed(t *testing.T) {
 	// but Go and most other systems use "east is positive".
 	// So GMT+1 corresponds to -3600 in the Go zone, not +3600.
 	name, offset := Now().In(loc).Zone()
-	if name != "GMT+1" || offset != -1*60*60 {
-		t.Errorf("Now().In(loc).Zone() = %q, %d, want %q, %d", name, offset, "GMT+1", -1*60*60)
+	if name != "-01" || offset != -1*60*60 {
+		t.Errorf("Now().In(loc).Zone() = %q, %d, want %q, %d", name, offset, "-01", -1*60*60)
 	}
 }
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-28 20:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-18  9:19 [PATCH, libgo]: Fix FAIL: time testsuite failure Uros Bizjak
2016-10-18 12:10 ` Uros Bizjak
2016-10-18 12:14   ` Uros Bizjak
2016-10-18 12:49   ` Rainer Orth
2016-10-28 20:08 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).