aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime/pprof/uname_other_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/runtime/pprof/uname_other_test.go')
-rw-r--r--libgo/go/runtime/pprof/uname_other_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/libgo/go/runtime/pprof/uname_other_test.go b/libgo/go/runtime/pprof/uname_other_test.go
new file mode 100644
index 0000000..3276407
--- /dev/null
+++ b/libgo/go/runtime/pprof/uname_other_test.go
@@ -0,0 +1,15 @@
+// Copyright 2021 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.
+
+//go:build !linux
+
+package pprof
+
+import (
+ "errors"
+)
+
+func linuxKernelVersion() (major, minor, patch int, err error) {
+ return 0, 0, 0, errors.New("not running on linux")
+}