aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-04-06 19:43:06 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-04-06 19:43:06 +0200
commit2a9c3edcdaf644772298c92be942bfbb7170b35c (patch)
tree2affc5164d2fdf4f44a6661a8e22625eabe744f9 /pkg/host
parent4daf8570eba286299489fc3ebc7d788c458bb47a (diff)
pkg/prog: explain why syscalls are transitively disabled
Diffstat (limited to 'pkg/host')
-rw-r--r--pkg/host/host_test.go12
1 files changed, 3 insertions, 9 deletions
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)
}
}