From 2a9c3edcdaf644772298c92be942bfbb7170b35c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 6 Apr 2018 19:43:06 +0200 Subject: pkg/prog: explain why syscalls are transitively disabled --- pkg/host/host_test.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'pkg/host') diff --git a/pkg/host/host_test.go b/pkg/host/host_test.go index 470a6e5e1..aa7020942 100644 --- a/pkg/host/host_test.go +++ b/pkg/host/host_test.go @@ -31,15 +31,9 @@ func TestLog(t *testing.T) { for c, reason := range disabled { t.Logf("%v: %v", c.Name, reason) } - trans := target.TransitivelyEnabledCalls(supp) + _, disabled = target.TransitivelyEnabledCalls(supp) t.Logf("\n\ntransitively 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("%v", c.Name) - } + for c, reason := range disabled { + t.Logf("%v: %v", c.Name, reason) } } -- cgit mrf-deployment