diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-08-25 22:28:38 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-08-25 22:28:38 +0000 |
commit | 17e8195a8f988a45b2822522bc7b967b3ebc3ca6 (patch) | |
tree | 1f0bd3f798f7a245b8f96a9a7eec0bbc708f1266 /auto_tests | |
parent | e99c13120f1b51c25fbb20dc2763889b2b12795a (diff) |
Fix the `PORT_ALLOC` failure of `save_compatibility_test`.
`tox_new_log` has a much larger range of ports it can select from.
Diffstat (limited to 'auto_tests')
-rw-r--r-- | auto_tests/save_compatibility_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/auto_tests/save_compatibility_test.c b/auto_tests/save_compatibility_test.c index d6d3448b..30e87ef8 100644 --- a/auto_tests/save_compatibility_test.c +++ b/auto_tests/save_compatibility_test.c | |||
@@ -78,8 +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 | size_t index = 0; | ||
81 | Tox_Err_New err; | 82 | Tox_Err_New err; |
82 | Tox *tox = tox_new(&options, &err); | 83 | Tox *tox = tox_new_log(&options, &err, &index); |
83 | ck_assert_msg(tox, "failed to create tox, error number: %d", err); | 84 | ck_assert_msg(tox, "failed to create tox, error number: %d", err); |
84 | 85 | ||
85 | free(save_data); | 86 | free(save_data); |