summaryrefslogtreecommitdiff
path: root/auto_tests
diff options
context:
space:
mode:
authorzugz (tox) <mbays+tox@sdf.org>2020-04-26 00:00:00 +0000
committerzugz (tox) <mbays+tox@sdf.org>2020-04-26 00:00:00 +0000
commit8816e50ed708f10fd94c77f1e2ac9a1f9bc2e5dc (patch)
tree97a84ec531d7bd6e455ee2a1250c93a261ced767 /auto_tests
parent223f98d0b577124569788720cd3f87dafe868b39 (diff)
Skip invalid TCP relays and DHT nodes when loading save data
Diffstat (limited to 'auto_tests')
-rw-r--r--auto_tests/save_compatibility_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/auto_tests/save_compatibility_test.c b/auto_tests/save_compatibility_test.c
index a32015b4..fffe2f6e 100644
--- a/auto_tests/save_compatibility_test.c
+++ b/auto_tests/save_compatibility_test.c
@@ -124,6 +124,9 @@ static void test_save_compatibility(const char *save_path)
124 ck_assert_msg(strncmp(tox_id_str, EXPECTED_TOX_ID, TOX_ADDRESS_SIZE * 2) == 0, 124 ck_assert_msg(strncmp(tox_id_str, EXPECTED_TOX_ID, TOX_ADDRESS_SIZE * 2) == 0,
125 "tox ids do not match, expected %s got %s", EXPECTED_TOX_ID, tox_id_str); 125 "tox ids do not match, expected %s got %s", EXPECTED_TOX_ID, tox_id_str);
126 126
127 /* Giving the tox a chance to error on iterate due to corrupted loaded structures */
128 tox_iterate(tox, nullptr);
129
127 tox_kill(tox); 130 tox_kill(tox);
128} 131}
129 132