mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Add check to make sure tox was created successfully
This commit is contained in:
parent
21b178396a
commit
76f4ae64b7
|
@ -78,7 +78,9 @@ static void test_save_compatibility(const char *save_path)
|
|||
options.savedata_length = size;
|
||||
options.savedata_type = TOX_SAVEDATA_TYPE_TOX_SAVE;
|
||||
|
||||
Tox *tox = tox_new(&options, nullptr);
|
||||
Tox_Err_New err;
|
||||
Tox *tox = tox_new(&options, &err);
|
||||
ck_assert_msg(tox, "failed to create tox, error number: %d", err);
|
||||
|
||||
free(save_data);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user