From 0443f8dd4d957a9870dbeda9ec2da2dc6e90a4ca Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 1 Mar 2018 13:53:55 +0100 Subject: csync: Simplify csync_walk_local_tree/csync_walk_remote_tree Small refactoring --- test/csync/csync_tests/check_csync_update.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'test') diff --git a/test/csync/csync_tests/check_csync_update.cpp b/test/csync/csync_tests/check_csync_update.cpp index 504ea2096..b4eca074d 100644 --- a/test/csync/csync_tests/check_csync_update.cpp +++ b/test/csync/csync_tests/check_csync_update.cpp @@ -325,16 +325,6 @@ static void check_csync_detect_update_db_new(void **state) csync_set_status(csync, 0xFFFF); } -static void check_csync_detect_update_null(void **state) -{ - CSYNC *csync = (CSYNC*)*state; - std::unique_ptr fs; - int rc; - - rc = _csync_detect_update(csync, NULL); - assert_int_equal(rc, -1); -} - static void check_csync_ftw(void **state) { CSYNC *csync = (CSYNC*)*state; @@ -370,7 +360,6 @@ int torture_run_tests(void) cmocka_unit_test_setup_teardown(check_csync_detect_update_db_eval, setup, teardown), cmocka_unit_test_setup_teardown(check_csync_detect_update_db_rename, setup, teardown), cmocka_unit_test_setup_teardown(check_csync_detect_update_db_new, setup, teardown_rm), - cmocka_unit_test_setup_teardown(check_csync_detect_update_null, setup, teardown_rm), cmocka_unit_test_setup_teardown(check_csync_ftw, setup_ftw, teardown_rm), cmocka_unit_test_setup_teardown(check_csync_ftw_empty_uri, setup_ftw, teardown_rm), -- cgit v1.2.3