# HG changeset patch # User David Demelier # Date 1612906925 -3600 # Node ID 6da542806ed3a0566b83f4cbe70d138fe9bf5a06 # Parent 2e4b29ab8e9cec74d4360026f02adf4580ca07af tests: fix diff -r 2e4b29ab8e9c -r 6da542806ed3 tests/test-jsapi-chrono.c --- a/tests/test-jsapi-chrono.c Tue Feb 09 22:40:29 2021 +0100 +++ b/tests/test-jsapi-chrono.c Tue Feb 09 22:42:05 2021 +0100 @@ -32,7 +32,7 @@ { (void)udata; - plugin = js_plugin_open(SOURCE "/data/example-plugin.js"); + plugin = js_plugin_open("example", SOURCE "/data/example-plugin.js"); ctx = js_plugin_get_context(plugin); } diff -r 2e4b29ab8e9c -r 6da542806ed3 tests/test-jsapi-directory.c --- a/tests/test-jsapi-directory.c Tue Feb 09 22:40:29 2021 +0100 +++ b/tests/test-jsapi-directory.c Tue Feb 09 22:42:05 2021 +0100 @@ -32,7 +32,7 @@ { (void)udata; - plugin = js_plugin_open(SOURCE "/data/example-plugin.js"); + plugin = js_plugin_open("example", SOURCE "/data/example-plugin.js"); ctx = js_plugin_get_context(plugin); duk_push_string(ctx, SOURCE); diff -r 2e4b29ab8e9c -r 6da542806ed3 tests/test-jsapi-file.c --- a/tests/test-jsapi-file.c Tue Feb 09 22:40:29 2021 +0100 +++ b/tests/test-jsapi-file.c Tue Feb 09 22:42:05 2021 +0100 @@ -33,7 +33,7 @@ { (void)udata; - plugin = js_plugin_open(SOURCE "/data/example-plugin.js"); + plugin = js_plugin_open("example", SOURCE "/data/example-plugin.js"); ctx = js_plugin_get_context(plugin); duk_push_string(ctx, SOURCE); diff -r 2e4b29ab8e9c -r 6da542806ed3 tests/test-jsapi-irccd.c --- a/tests/test-jsapi-irccd.c Tue Feb 09 22:40:29 2021 +0100 +++ b/tests/test-jsapi-irccd.c Tue Feb 09 22:42:05 2021 +0100 @@ -35,7 +35,7 @@ { (void)udata; - plugin = js_plugin_open(SOURCE "/data/example-plugin.js"); + plugin = js_plugin_open("example", SOURCE "/data/example-plugin.js"); ctx = js_plugin_get_context(plugin); } diff -r 2e4b29ab8e9c -r 6da542806ed3 tests/test-jsapi-system.c --- a/tests/test-jsapi-system.c Tue Feb 09 22:40:29 2021 +0100 +++ b/tests/test-jsapi-system.c Tue Feb 09 22:42:05 2021 +0100 @@ -33,7 +33,7 @@ { (void)udata; - plugin = js_plugin_open(SOURCE "/data/example-plugin.js"); + plugin = js_plugin_open("example", SOURCE "/data/example-plugin.js"); ctx = js_plugin_get_context(plugin); } diff -r 2e4b29ab8e9c -r 6da542806ed3 tests/test-jsapi-unicode.c --- a/tests/test-jsapi-unicode.c Tue Feb 09 22:40:29 2021 +0100 +++ b/tests/test-jsapi-unicode.c Tue Feb 09 22:42:05 2021 +0100 @@ -37,7 +37,7 @@ { (void)udata; - plugin = js_plugin_open(SOURCE "/data/example-plugin.js"); + plugin = js_plugin_open("example", SOURCE "/data/example-plugin.js"); ctx = js_plugin_get_context(plugin); } diff -r 2e4b29ab8e9c -r 6da542806ed3 tests/test-jsapi-util.c --- a/tests/test-jsapi-util.c Tue Feb 09 22:40:29 2021 +0100 +++ b/tests/test-jsapi-util.c Tue Feb 09 22:42:05 2021 +0100 @@ -30,7 +30,7 @@ { (void)udata; - plugin = js_plugin_open(SOURCE "/data/example-plugin.js"); + plugin = js_plugin_open("example", SOURCE "/data/example-plugin.js"); ctx = js_plugin_get_context(plugin); }