Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-03-05OwnSql: Distinguish no-data from error #6677Christian Kamm
This could fix a problem where the client incorrectly decides to delete local data. Previously any sqlite3_step() return value that wasn't SQLITE_ROW would be interpreted as "there's no more data here". Thus an sqlite error at a bad time could cause the remote discovery to fail to read an unchanged subtree from the database. These files would then be deleted locally. With this change sqlite errors from sqlite3_step are detected and logged. For the particular case of SyncJournalDb::getFilesBelowPath() the error will now be propagated and the sync run will fail instead of performing spurious deletes. Note that many other database functions still don't distinguish not-found from error cases. Most of them won't have as severe effects on affected sync runs though.
2018-03-15OwnSql: Fixup after feedback for #6388Olivier Goffart
2017-09-18Move SyncJournalDB to src/commonJocelyn Turcotte
2017-05-09Use QTemporaryDir in TestOwnSqlJocelyn Turcotte
This will improve the cleanup and possibly help for #5366.
2016-05-12For tests we do not need a xserver running.Hefee
Use for tests QTEST_GUILESS_MAIN and QTEST_APPLESS_MAIN.
2016-03-30Simplify the build of auto testsJocelyn Turcotte
Remove all configure_files: - Move all tests to cpp files - Use the QTEST_MAIN macro instead of a generated main.cpp - Include test*.moc in the cpp to let CMAKE_AUTOMOC call moc - Pass info through add_definitions instead of generating oc_bin.h with them This makes sure that build errors points to the original test source file instead of the generated one in the build directory to be able to jump and fix errors directly from the IDE's error pane.