aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/host_linux_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/host/host_linux_test.go')
-rw-r--r--pkg/host/host_linux_test.go37
1 files changed, 1 insertions, 36 deletions
diff --git a/pkg/host/host_linux_test.go b/pkg/host/host_linux_test.go
index 9deda69bc..084428ab2 100644
--- a/pkg/host/host_linux_test.go
+++ b/pkg/host/host_linux_test.go
@@ -11,50 +11,15 @@ import (
"testing"
"github.com/google/syzkaller/prog"
- _ "github.com/google/syzkaller/sys"
)
-func TestLog(t *testing.T) {
- t.Parallel()
- target, err := prog.GetTarget("linux", runtime.GOARCH)
- if err != nil {
- t.Fatal(err)
- }
- // Dump for manual inspection.
- supp, err := DetectSupportedSyscalls(target, "none")
- if err != nil {
- t.Skipf("skipping: %v", err)
- }
- t.Logf("unsupported:")
- for _, c := range target.Syscalls {
- s, ok := supp[c]
- if ok && !s {
- t.Fatalf("map contains false value")
- }
- if !s {
- t.Logf("\t%v", c.Name)
- }
- }
- trans := target.TransitivelyEnabledCalls(supp)
- t.Logf("transitively unsupported:")
- for _, c := range target.Syscalls {
- s, ok := trans[c]
- if ok && !s {
- t.Fatalf("map contains false value")
- }
- if !s && supp[c] {
- t.Logf("\t%v", c.Name)
- }
- }
-}
-
func TestSupportedSyscalls(t *testing.T) {
t.Parallel()
target, err := prog.GetTarget("linux", runtime.GOARCH)
if err != nil {
t.Fatal(err)
}
- supp, err := DetectSupportedSyscalls(target, "none")
+ supp, _, err := DetectSupportedSyscalls(target, "none")
if err != nil {
t.Skipf("skipping: %v", err)
}