summaryrefslogtreecommitdiff
path: root/tests/threads/refdb.c
Commit message (Collapse)AuthorAgeFilesLines
* refdb: disable concurrent compress in the threading tests on Windowscmn/windows-no-concurrent-compressCarlos Martín Nieto2016-12-121-2/+8
| | | | | | | | | This is far from an ideal situation, but this causes issues on Windows which make it harder to develop anything, as these tests hit issues which relate specifically to the Windows filesystem like permission errors for files we should be able to access. There is an issue likely related to the ordering of the repack, but there's enough noise that it does not currently help us to run this aspect of the test in CI.
* threads::refdb tests: use new threaded clar assertEdward Thomson2016-11-181-10/+14
|
* refdb: use a constant for the number of per-thread creations/deletescmn/refdb-paraCarlos Martín Nieto2016-11-141-6/+8
|
* refdb: bubble up locked files on the read sideCarlos Martín Nieto2016-11-141-4/+13
| | | | | | On Windows we can find locked files even when reading a reference or the packed-refs file. Bubble up the error in this case as well to allow callers on Windows to retry more intelligently.
* refdb: expect threaded test deletes to raceCarlos Martín Nieto2016-11-141-0/+4
| | | | | At times we may try to delete a reference which a different thread has already taken care of.
* refdb: add retry logic to the threaded testsCarlos Martín Nieto2016-11-141-5/+13
| | | | | The logic simply consists of retrying for as long as the library says the data is locked, but it eventually gets through.
* refdb: adjust the threading tests to what we promiseCarlos Martín Nieto2016-11-141-78/+44
| | | | | | | | We say it's going to work if you use a different repository in each thread. Let's do precisely that in our code instead of hoping re-using the refdb is going to work. This test does fail currently, surfacing existing bugs.
* threads: split up OS-dependent thread codePatrick Steinhardt2016-06-201-3/+3
|
* Remove the signature from ref-modifying functionsCarlos Martín Nieto2015-03-031-3/+3
| | | | | | | | | | The signature for the reflog is not something which changes dynamically. Almost all uses will be NULL, since we want for the repository's default identity to be used, making it noise. In order to allow for changing the identity, we instead provide git_repository_set_ident() and git_repository_ident() which allow a user to override the choice of signature.
* Use p_snprintf also in testsJacques Germishuys2014-08-051-4/+4
|
* Win32: Fix object::cache::threadmania test on x64Philip Kelley2014-06-071-2/+2
|
* Disable threads::refdb::edit_while_iterate testrb/dont-stop-diff-on-safecrlfRussell Belfer2014-05-081-7/+12
| | | | | | | | | | | It seems that with the various recent changes to reference updating and reflog writing, that the thread safety of refdb updates has been reduced (either that or it was never thread safe and the window for error has increased). Either way, this test is now sometimes segfaulting which is no good, so let's disable the test for now. We don't really make any public promises about thread safety for this type of operation, so I think this is acceptable, at least in the short term.
* Some memory leak fixesRussell Belfer2014-04-171-0/+3
|
* refs: remove the _with_log differentiationCarlos Martín Nieto2014-01-151-3/+3
| | | | | | Any well-behaved program should write a descriptive message to the reflog whenever it updates a reference. Let's make this more prominent by removing the version without the reflog parameters.
* Rename tests-clar to testsBen Straub2013-11-141-0/+213