about summary refs log tree commit homepage
path: root/t/test_isolate.rb
diff options
context:
space:
mode:
Diffstat (limited to 't/test_isolate.rb')
-rw-r--r--t/test_isolate.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/test_isolate.rb b/t/test_isolate.rb
index a97417c..c8a88fa 100644
--- a/t/test_isolate.rb
+++ b/t/test_isolate.rb
@@ -13,6 +13,8 @@ opts = {
 old_out = $stdout.dup
 $stdout.reopen($stderr)
 
+lock = File.open(__FILE__, "rb")
+lock.flock(File::LOCK_EX)
 Isolate.now!(opts) do
   gem 'rack', '1.2.1'
   gem 'kgio', '2.1.1'