core: simplify interop functions
We now have the only interop table (system interops).
This commit is contained in:
parent
6d59689d9c
commit
4b933f88a7
7 changed files with 23 additions and 42 deletions
|
@ -94,10 +94,8 @@ func TestSyscallExecution(t *testing.T) {
|
|||
ic := &interop.Context{}
|
||||
core.SpawnVM(ic) // set Functions field
|
||||
for _, fs := range ic.Functions {
|
||||
for i := range fs {
|
||||
// It will be set in test and we want to fail if calling invalid syscall.
|
||||
fs[i].Func = nil
|
||||
}
|
||||
// It will be set in test and we want to fail if calling invalid syscall.
|
||||
fs.Func = nil
|
||||
}
|
||||
for goName, tc := range interops {
|
||||
t.Run(goName, func(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue