fix retest bit rot

This commit is contained in:
Anthony Pesch 2017-06-18 17:59:57 -04:00
parent fa25be88bb
commit c0a5f7279a
2 changed files with 15 additions and 18 deletions

View File

@ -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;
}

View File

@ -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("===-----------------------------------------------------===");