diff options
| author | Elias Sjögreen <eliassjogreen1@gmail.com> | 2021-08-06 23:28:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-06 23:28:10 +0200 |
| commit | 33c8d790c3d358a475c9ba828043e2c19e8d4b37 (patch) | |
| tree | 4ab33b3e5b352d49667d55631c76ee76af2ec5e2 /cli/tests/test | |
| parent | 0d1a522a03c22749e96dab06ca7b3e8b428df701 (diff) | |
feat: ffi to replace plugins (#11152)
This commit removes implementation of "native plugins" and replaces
it with FFI API.
Effectively "Deno.openPlugin" API was replaced with "Deno.dlopen" API.
Diffstat (limited to 'cli/tests/test')
| -rw-r--r-- | cli/tests/test/allow_all.out | 4 | ||||
| -rw-r--r-- | cli/tests/test/allow_all.ts | 2 | ||||
| -rw-r--r-- | cli/tests/test/allow_none.out | 6 | ||||
| -rw-r--r-- | cli/tests/test/allow_none.ts | 2 | ||||
| -rw-r--r-- | cli/tests/test/ignore_permissions.ts | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/cli/tests/test/allow_all.out b/cli/tests/test/allow_all.out index 3be26c6e0..9b7367b94 100644 --- a/cli/tests/test/allow_all.out +++ b/cli/tests/test/allow_all.out @@ -10,8 +10,8 @@ test env false ... ok [WILDCARD] test env true ... ok [WILDCARD] test run false ... ok [WILDCARD] test run true ... ok [WILDCARD] -test plugin false ... ok [WILDCARD] -test plugin true ... ok [WILDCARD] +test ffi false ... ok [WILDCARD] +test ffi true ... ok [WILDCARD] test hrtime false ... ok [WILDCARD] test hrtime true ... ok [WILDCARD] diff --git a/cli/tests/test/allow_all.ts b/cli/tests/test/allow_all.ts index e4e12144e..b8f8c647d 100644 --- a/cli/tests/test/allow_all.ts +++ b/cli/tests/test/allow_all.ts @@ -6,7 +6,7 @@ const permissions: Deno.PermissionName[] = [ "net", "env", "run", - "plugin", + "ffi", "hrtime", ]; diff --git a/cli/tests/test/allow_none.out b/cli/tests/test/allow_none.out index 96fb72278..b79c7e6bf 100644 --- a/cli/tests/test/allow_none.out +++ b/cli/tests/test/allow_none.out @@ -5,7 +5,7 @@ test write ... FAILED [WILDCARD] test net ... FAILED [WILDCARD] test env ... FAILED [WILDCARD] test run ... FAILED [WILDCARD] -test plugin ... FAILED [WILDCARD] +test ffi ... FAILED [WILDCARD] test hrtime ... FAILED [WILDCARD] failures: @@ -30,7 +30,7 @@ run PermissionDenied: Can't escalate parent thread permissions [WILDCARD] -plugin +ffi PermissionDenied: Can't escalate parent thread permissions [WILDCARD] @@ -45,7 +45,7 @@ failures: net env run - plugin + ffi hrtime test result: FAILED. 0 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out [WILDCARD] diff --git a/cli/tests/test/allow_none.ts b/cli/tests/test/allow_none.ts index c0a930eb1..7872c774e 100644 --- a/cli/tests/test/allow_none.ts +++ b/cli/tests/test/allow_none.ts @@ -6,7 +6,7 @@ const permissions: Deno.PermissionName[] = [ "net", "env", "run", - "plugin", + "ffi", "hrtime", ]; diff --git a/cli/tests/test/ignore_permissions.ts b/cli/tests/test/ignore_permissions.ts index bd0567a46..ff3084441 100644 --- a/cli/tests/test/ignore_permissions.ts +++ b/cli/tests/test/ignore_permissions.ts @@ -6,7 +6,7 @@ Deno.test({ net: true, env: true, run: true, - plugin: true, + ffi: true, hrtime: true, }, ignore: true, |
