mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
tests: Return early if initialization fails
This commit is contained in:
parent
7131334d6a
commit
f98eb9eb70
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,9 @@ int main(int argc, char** argv) {
|
|||
al_set_app_name("libsuperderpy");
|
||||
char* args[2] = {"", "--debug"};
|
||||
game = libsuperderpy_init(2, args, "test", (struct Params){});
|
||||
if (!game) {
|
||||
return 1;
|
||||
}
|
||||
libsuperderpy_start(game);
|
||||
int ret = test_timeline() || test_character();
|
||||
libsuperderpy_destroy(game);
|
||||
|
|
Loading…
Reference in a new issue