aboutsummaryrefslogtreecommitdiff
path: root/tests/gc-concurrent.sh
AgeCommit message (Collapse)Author
2020-07-02Make the gc-concurrent test more reliableregnat
Use a fifo pipe to handle the synchronisation between the different threads rather than relying on delays
2014-08-21Fix testsEelco Dolstra
So all these years I was totally deluded about the meaning of "set -e". You might think that it causes statements like "false && true" or "! true" to fail, but it doesn't...
2011-10-10* Refactoring: remove unnecessary variables from the tests.Eelco Dolstra
2009-03-27* Argh, stupid timing sensitive tests...Eelco Dolstra
2009-03-18* Acquire the locks on the output paths before trying to run the buildEelco Dolstra
hook. This fixes a problem with log files being partially or completely filled with 0's because another nix-store process truncates the log file. It should also be more efficient.
2009-03-17* Refactoring: renamed *.nix.in to *.nix.Eelco Dolstra
2008-12-12* Simplify deleting .lock files in /nix/store: just don't delete themEelco Dolstra
if they belong a path that's currently being built. This gets rid of some Cygwin-specific code.
2008-08-14* Increase the sleep periods a bit to make the test less likely toEelco Dolstra
fail on slow machines. Of course it would be better if this test wasn't timing dependent...
2006-03-01* Add a test for nix-log2xml.Eelco Dolstra
2006-03-01* Simplification.Eelco Dolstra
2006-03-01* Make it easy to run individual tests from the command line.Eelco Dolstra
2005-02-09* Propagate the deriver of a path through the substitute mechanism.Eelco Dolstra
* Removed some dead code (successor stuff) from nix-push. * Updated terminology in the tests (store expr -> drv path). * Check that the deriver is set properly in the tests.
2005-02-01* Make check fixes.Eelco Dolstra
2005-01-31* Acquire a global GC lock to prevent new temporary root files fromEelco Dolstra
being created after the garbage collector has read the temproots directory. This blocks the creation of new processes, but the garbage collector could periodically release the GC lock to allow them to run.
2005-01-31* Add a test for a more subtle race: a process starting after theEelco Dolstra
temporary root files have been read but creating outputs before the store directory has been read.
2005-01-31* Start of concurrent garbage collection. Processes write temporaryEelco Dolstra
roots to a per-process temporary file in /nix/var/nix/temproots while holding a write lock on that file. The garbage collector acquires read locks on all those files, thus blocking further progress in other Nix processes, and reads the sets of temporary roots.
2005-01-28* Add a test to check whether concurrent garbage collection (i.e.,Eelco Dolstra
running the collector while builds are in progress) works correctly. The test currently fails.