aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/internal/mountinfo/mountinfo_guard.go
blob: aaf63ac459ea1115aa82512aa5c0cefeda741647 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//go:build !testsuite && !tester

package mountinfo

import (
	"os"
	"testing"
)

func init() {
	if !testing.Testing() {
		println("package mountinfo imported in non-testsuite program")
		os.Exit(1)
	}
}