File: seccomp_linux_test.go

package info (click to toggle)
runc 1.0.0~rc6%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,956 kB
  • sloc: sh: 1,386; ansic: 813; makefile: 115
file content (17 lines) | stat: -rw-r--r-- 300 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// +build linux,cgo,seccomp

package seccomp

import "testing"

func TestParseStatusFile(t *testing.T) {
	s, err := parseStatusFile("fixtures/proc_self_status")
	if err != nil {
		t.Fatal(err)
	}

	if _, ok := s["Seccomp"]; !ok {

		t.Fatal("expected to find 'Seccomp' in the map but did not.")
	}
}