]> Cypherpunks repositories - gostls13.git/commitdiff
Revert "time: zoneinfo support on darwin/arm"
authorDavid Crawshaw <crawshaw@golang.org>
Tue, 3 Mar 2015 02:34:02 +0000 (02:34 +0000)
committerDavid Crawshaw <crawshaw@golang.org>
Tue, 3 Mar 2015 02:37:30 +0000 (02:37 +0000)
This reverts commit 54efdc596f7b6c711e5d65d99f1c25a0ca3628f1.

Broken on darwin.

Change-Id: Ic74275f36d30975263340e2b4045226eae71b16a
Reviewed-on: https://go-review.googlesource.com/6514
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/time/sleep_test.go
src/time/zoneinfo_darwin_armx.go [deleted file]
src/time/zoneinfo_unix.go

index 6452a9e0274753c83a5010d1803a001ed1344805..c9b2956b7845e58e1d5bf0c766bade121ce3a8c6 100644 (file)
@@ -383,10 +383,6 @@ func TestOverflowSleep(t *testing.T) {
 // Test that a panic while deleting a timer does not leave
 // the timers mutex held, deadlocking a ticker.Stop in a defer.
 func TestIssue5745(t *testing.T) {
-       if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" {
-               t.Skipf("skipping on %s/%s, see issue 10043", runtime.GOOS, runtime.GOARCH)
-       }
-
        ticker := NewTicker(Hour)
        defer func() {
                // would deadlock here before the fix due to
diff --git a/src/time/zoneinfo_darwin_armx.go b/src/time/zoneinfo_darwin_armx.go
deleted file mode 100644 (file)
index f09166c..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2015 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// +build darwin
-// +build arm arm64
-
-package time
-
-import "syscall"
-
-var zoneFile string
-
-func init() {
-       wd, err := syscall.Getwd()
-       if err != nil {
-               return
-       }
-
-       // The working directory at initialization is the root of the
-       // app bundle: "/private/.../bundlename.app". That's where we
-       // keep zoneinfo.zip.
-       zoneFile = wd + "/zoneinfo.zip"
-}
-
-func forceZipFileForTesting(zipOnly bool) {
-       // On iOS we only have the zip file.
-}
-
-func initTestingZone() {
-       z, err := loadZoneFile(zoneFile, "America/Los_Angeles")
-       if err != nil {
-               panic("cannot load America/Los_Angeles for testing: " + err.Error())
-       }
-       z.name = "Local"
-       localLoc = *z
-}
-
-func initLocal() {
-       // TODO(crawshaw): [NSTimeZone localTimeZone]
-       localLoc = *UTC
-}
-
-func loadLocation(name string) (*Location, error) {
-       z, err := loadZoneFile(zoneFile, name)
-       if err != nil {
-               return nil, err
-       }
-       z.name = name
-       return z, nil
-}
index 687d0046687a9357ed9f90b1f59ca25182bb428e..66540969d587a7abd8897c25f8d1ae6e3b339dcd 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build darwin,!arm,!arm64 dragonfly freebsd linux nacl netbsd openbsd solaris
+// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris
 
 // Parse "zoneinfo" time zone file.
 // This is a fairly standard file format used on OS X, Linux, BSD, Sun, and others.