aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-05-10 13:04:27 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-05-10 13:04:27 +0200
commitda22883527540e92f2f0851ae78b4c692d249f3e (patch)
treeeeb433dbce3dcaa8cca62ce8bf9dfc82e27c5579
parentc2aed7c7e3e293282067079aa68bd550b880a242 (diff)
prog: fix TestTransitivelyEnabledCalls
We now have io_uring on all arches so remove the hack.
-rw-r--r--prog/decl_test.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/prog/decl_test.go b/prog/decl_test.go
index c98a77efc..bf6bec4d1 100644
--- a/prog/decl_test.go
+++ b/prog/decl_test.go
@@ -46,16 +46,10 @@ func TestTransitivelyEnabledCalls(t *testing.T) {
}
}
} else {
- expectDisabled := 0
- if target.OS == "linux" && (target.Arch == "arm" || target.Arch == "ppc64le") {
- // mmap$IORING* are disabled because io_uring_setup is not implemented.
- // Remove this once io_uring_setup has syscall number of these archs.
- expectDisabled = 3
- }
- if len(enabled) != len(target.Syscalls)-expectDisabled {
+ if len(enabled) != len(target.Syscalls) {
t.Errorf("some calls are disabled: %v/%v", len(enabled), len(target.Syscalls))
}
- if len(disabled) != expectDisabled {
+ if len(disabled) != 0 {
for c, reason := range disabled {
t.Errorf("disabled %v: %v", c.Name, reason)
}