From c0a5f7279a0491e065068d0c033d4502c3f81cef Mon Sep 17 00:00:00 2001 From: Anthony Pesch Date: Sun, 18 Jun 2017 17:59:57 -0400 Subject: [PATCH] fix retest bit rot --- src/host/null_host.c | 14 ++++++++------ test/retest.c | 19 +++++++------------ 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/src/host/null_host.c b/src/host/null_host.c index d3e3ab16..02b098ab 100644 --- a/src/host/null_host.c +++ b/src/host/null_host.c @@ -9,20 +9,22 @@ void audio_push(struct host *base, const int16_t *data, int num_frames) {} /* * video */ -void video_gl_make_current(struct host *host, gl_context_t ctx) {} +void video_unbind_context(struct host *base) {} -void video_gl_destroy_context(struct host *base, gl_context_t ctx) {} +void video_bind_context(struct host *base, struct render_backend *r) {} -gl_context_t video_gl_create_context_from(struct host *base, - gl_context_t from) { +void video_destroy_renderer(struct host *base, struct render_backend *r) {} + +struct render_backend *video_create_renderer_from(struct host *base, + struct render_backend *from) { return NULL; } -gl_context_t video_gl_create_context(struct host *base) { +struct render_backend *video_create_renderer(struct host *base) { return NULL; } -int video_gl_supports_multiple_contexts(struct host *base) { +int video_supports_multiple_contexts(struct host *base) { return 0; } diff --git a/test/retest.c b/test/retest.c index 403ca5e2..c838c5f4 100644 --- a/test/retest.c +++ b/test/retest.c @@ -10,18 +10,13 @@ void test_register(struct test *test) { } int main(int argc, char **argv) { - const char *appdir = fs_appdir(); - if (!fs_mkdir(appdir)) { - LOG_FATAL("Failed to create app directory %s", appdir); - } - - /* load base options from config */ - char config[PATH_MAX] = {0}; - snprintf(config, sizeof(config), "%s" PATH_SEPARATOR "config", appdir); - options_read(config); - - /* override options from the command line */ - options_parse(&argc, &argv); + /* set application directory */ + char appdir[PATH_MAX]; + char userdir[PATH_MAX]; + int r = fs_userdir(userdir, sizeof(userdir)); + CHECK(r); + snprintf(appdir, sizeof(appdir), "%s" PATH_SEPARATOR ".redream", userdir); + fs_set_appdir(appdir); list_for_each_entry(test, &tests, struct test, it) { LOG_INFO("===-----------------------------------------------------===");