From 76f4ae64b7e2b20ff39806bbe248eb89116e365f Mon Sep 17 00:00:00 2001 From: endoffile78 Date: Tue, 21 Aug 2018 22:22:39 -0500 Subject: Add check to make sure tox was created successfully --- auto_tests/save_compatibility_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'auto_tests') 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) 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); -- cgit v1.2.3