summaryrefslogtreecommitdiff
path: root/auto_tests
diff options
context:
space:
mode:
authorendoffile78 <endoffile78@yahoo.com>2018-08-21 22:22:39 -0500
committeriphydf <iphydf@users.noreply.github.com>2018-08-22 10:12:46 +0000
commit76f4ae64b7e2b20ff39806bbe248eb89116e365f (patch)
tree0cd24fb1b50792de0b4e95797966c59cb15f8548 /auto_tests
parent21b178396a5267754b8b105b7e4cfaf49531fd85 (diff)
Add check to make sure tox was created successfully
Diffstat (limited to 'auto_tests')
-rw-r--r--auto_tests/save_compatibility_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/auto_tests/save_compatibility_test.c b/auto_tests/save_compatibility_test.c
index 07ffc52a..d6d3448b 100644
--- a/auto_tests/save_compatibility_test.c
+++ b/auto_tests/save_compatibility_test.c
@@ -78,7 +78,9 @@ static void test_save_compatibility(const char *save_path)
78 options.savedata_length = size; 78 options.savedata_length = size;
79 options.savedata_type = TOX_SAVEDATA_TYPE_TOX_SAVE; 79 options.savedata_type = TOX_SAVEDATA_TYPE_TOX_SAVE;
80 80
81 Tox *tox = tox_new(&options, nullptr); 81 Tox_Err_New err;
82 Tox *tox = tox_new(&options, &err);
83 ck_assert_msg(tox, "failed to create tox, error number: %d", err);
82 84
83 free(save_data); 85 free(save_data);
84 86