/*
   Copyright The containerd Authors.

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/

package fs

import (
	"testing"

	"github.com/containerd/continuity/testutil"
)

func TestRequiresRootNOP(t *testing.T) {
	// This is a dummy test case that exist to call
	// testutil.RequiresRoot() on non-linux platforms.  This is
	// needed because the Makfile root-coverage tests target
	// determines which packages contain root test by grepping for
	// testutil.RequiresRoot.  Within the fs package, the only test
	// that references this symbol is in dtype_linux_test.go, but
	// that file is only built on linux.  Since the Makefile is not
	// go build tag aware it sees this file and then tries to run
	// the following command on all platforms: "go test ...
	// github.com/containerd/continuity/fs -test.root".  On
	// non-linux platforms this fails because there are no tests in
	// the "fs" package that reference testutil.RequiresRoot.  To
	// fix this problem we'll add a reference to this symbol below.

	testutil.RequiresRoot(t)
}
