summaryrefslogtreecommitdiff
path: root/libgo/go/time/export_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/time/export_test.go')
-rw-r--r--libgo/go/time/export_test.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/libgo/go/time/export_test.go b/libgo/go/time/export_test.go
new file mode 100644
index 00000000000..130ca8f7ebe
--- /dev/null
+++ b/libgo/go/time/export_test.go
@@ -0,0 +1,19 @@
+// Copyright 2013 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.
+
+package time
+
+import (
+ "sync"
+)
+
+func ResetLocalOnceForTest() {
+ localOnce = sync.Once{}
+ localLoc = Location{}
+}
+
+func ForceUSPacificForTesting() {
+ ResetLocalOnceForTest()
+ localOnce.Do(initTestingZone)
+}