summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/locks
Commit message (Collapse)AuthorAgeFilesLines
* Substitute EventLoop for PollScheduler.Zac Medico2012-10-051-5/+5
| | | | | EventLoop suffices for all of these cases. EventLoop(main=False) is used for thread safety where API consumers may be using threads.
* LockNonblockTestCase: close_fds tweakZac Medico2012-03-271-1/+4
| | | | Make consistent with commit 144c23efbb4e9565debad03c13c5bcab833a8336.
* tests/locks: save/restore global env stateZac Medico2011-12-142-0/+15
| | | | | This ensures that global __PORTAGE_TEST_HARDLINK_LOCKS overrides work correctly for all tests.
* locks.py: fix hardlink locks for bug #394195Zac Medico2011-12-132-5/+55
| | | | | | This updates the hardlink locking code to support the non-blocking, lockfile(wantnewlockfile=False), and lockfile(file_object) behaviors which are used by portage code.
* Use portage.shutil for safer unicode handling.Zac Medico2011-12-102-2/+2
|
* Test noblocking locks.Zac Medico2011-06-081-0/+46
|
* Fix typos in comments.Arfrever Frehtes Taifersar Arahesis2011-05-181-3/+3
|
* test_asynchronous_lock: simulate SIGINT from ttyZac Medico2011-05-171-1/+33
|
* AsynchronousLock: implement _poll() and testZac Medico2011-05-171-0/+2
|
* test_asynchronous_lock: test returncode moreZac Medico2011-05-171-4/+8
|
* test_asynchronous_lock: test wait and cancelZac Medico2011-05-171-0/+22
|
* test_asynchronous_lock: test waitingZac Medico2011-05-171-0/+25
|
* AsynchronousLock: use subprocess if no threadsZac Medico2010-10-211-3/+13
|
* Add a new AsynchronousLock class that uses the portage.locks module toZac Medico2010-09-133-0/+31
acquire a lock asynchronously, using a background thread.