summaryrefslogtreecommitdiffhomepage
path: root/hostinfo/hostinfo_container_linux_test.go
blob: 594a5f5120a6a5fc0f5ee1e268d88ff95c248c51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause

//go:build linux && !android && ts_package_container

package hostinfo

import (
	"testing"
)

func TestInContainer(t *testing.T) {
	if got := inContainer(); !got.EqualBool(true) {
		t.Errorf("inContainer = %v; want true due to ts_package_container build tag", got)
	}
}