1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
6 // +build amd64 386 arm arm64
15 func TestDarwinGettimeofday(t
*testing
.T
) {
16 tv
:= &syscall
.Timeval
{}
17 if err
:= syscall
.Gettimeofday(tv
); err
!= nil {
20 if tv
.Sec
== 0 && tv
.Usec
== 0 {
21 t
.Fatal("Sec and Usec both zero")