You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
354 B
16 lines
354 B
// 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)
|
|
}
|
|
}
|
|
|