aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_ENV.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/test_ENV.rb')
-rw-r--r--Library/Homebrew/test/test_ENV.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_ENV.rb b/Library/Homebrew/test/test_ENV.rb
index 94a182ac2..a40448f77 100644
--- a/Library/Homebrew/test/test_ENV.rb
+++ b/Library/Homebrew/test/test_ENV.rb
@@ -114,6 +114,14 @@ module SharedEnvTests
assert_equal compiler, @env.compiler
end
end
+
+ def test_deparallelize_block_form_restores_makeflags
+ @env['MAKEFLAGS'] = '-j4'
+ @env.deparallelize do
+ assert_nil @env['MAKEFLAGS']
+ end
+ assert_equal '-j4', @env['MAKEFLAGS']
+ end
end
class StdenvTests < Homebrew::TestCase