diff options
Diffstat (limited to 'tests/common/test_hello_example.c')
| -rw-r--r-- | tests/common/test_hello_example.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/common/test_hello_example.c b/tests/common/test_hello_example.c deleted file mode 100644 index 350b3bb..0000000 --- a/tests/common/test_hello_example.c +++ /dev/null @@ -1,20 +0,0 @@ -/* Exercise hello's real frame callback; automated exit belongs in the test. */ -#define main hello_example_main -#include "../../examples/hello.c" -#undef main - -static void draw_once(void *ud, struct yasl_surface *surface, struct yasl_frame *frame) -{ - draw(ud, surface, frame); - if (!failed) yasl_surface_destroy(surface); -} - -int main(void) -{ - struct yasl_window_spec window = {.title = "Hello YASL", .size = {640, 480}}; - struct yasl_app_desc desc = { - .app_id = "org.yasl.test.hello", .window = &window, - .frame = draw_once, - }; - return yasl_run(&desc) || failed ? 1 : 0; -} |
