github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/mergeCode/runc/libcontainer/seccomp/seccomp_linux_test.go (about)

     1  // +build linux,cgo,seccomp
     2  
     3  package seccomp
     4  
     5  import "testing"
     6  
     7  func TestParseStatusFile(t *testing.T) {
     8  	s, err := parseStatusFile("fixtures/proc_self_status")
     9  	if err != nil {
    10  		t.Fatal(err)
    11  	}
    12  
    13  	if _, ok := s["Seccomp"]; !ok {
    14  
    15  		t.Fatal("expected to find 'Seccomp' in the map but did not.")
    16  	}
    17  }