summaryrefslogtreecommitdiffstats
path: root/test/json.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-08 14:21:40 +0100
committerwm4 <wm4@nowhere>2019-11-08 14:21:40 +0100
commit3ed9c1c9701098db17a2b791f9793e75a1947cc9 (patch)
tree4a1fb9145ab825c582e1e30fd819522d9aa0f93e /test/json.c
parent53b7a10f5453083390e65bdab5f1e642c37d89a2 (diff)
downloadmpv-3ed9c1c9701098db17a2b791f9793e75a1947cc9.tar.bz2
mpv-3ed9c1c9701098db17a2b791f9793e75a1947cc9.tar.xz
test: just always provide a context for all entrypoints
Diffstat (limited to 'test/json.c')
-rw-r--r--test/json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/json.c b/test/json.c
index e8499bee39..9997cdc892 100644
--- a/test/json.c
+++ b/test/json.c
@@ -67,7 +67,7 @@ static const struct entry entries[] = {
#define MAX_DEPTH 10
-static void run(void)
+static void run(struct test_ctx *ctx)
{
for (int n = 0; n < MP_ARRAY_SIZE(entries); n++) {
const struct entry *e = &entries[n];
@@ -91,5 +91,5 @@ static void run(void)
const struct unittest test_json = {
.name = "json",
- .run_simple = run,
+ .run = run,
};