diff options
author | adamedx <adamed@opscode.com> | 2013-06-25 06:01:11 -0700 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-06-25 06:05:12 -0700 |
commit | 28fe96c7135a1a10859014bab84769348b0b1df0 (patch) | |
tree | feb209d270bb7b61531ae64c2da39ad99aef676a /spec | |
parent | f35150c6f099180f4273a240664ec35668d66011 (diff) | |
download | chef-28fe96c7135a1a10859014bab84769348b0b1df0.tar.gz |
Fix Win2k3 32-bit status code test failures
Diffstat (limited to 'spec')
-rw-r--r-- | spec/functional/resource/powershell_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/functional/resource/powershell_spec.rb b/spec/functional/resource/powershell_spec.rb index 1b127ef238..4d31eb3ef1 100644 --- a/spec/functional/resource/powershell_spec.rb +++ b/spec/functional/resource/powershell_spec.rb @@ -31,9 +31,11 @@ describe Chef::Resource::WindowsScript::PowershellScript, :windows_only do let(:cmdlet_exit_code_success_content) { "get-item ." } let(:windows_process_exit_code_success_content) { "#{ENV['SystemRoot']}\\system32\\attrib.exe $env:systemroot" } let(:windows_process_exit_code_not_found_content) { "findstr /notavalidswitch" } - let(:arbitrary_nonzero_process_exit_code) { 314159265 } + # Note that process exit codes on 32-bit Win2k3 cannot + # exceed maximum value of signed integer + let(:arbitrary_nonzero_process_exit_code) { 4193 } let(:arbitrary_nonzero_process_exit_code_content) { "exit #{arbitrary_nonzero_process_exit_code}" } - let(:invalid_powershell_interpreter_flag) { "-thisflagisinvalid" } + let(:invalid_powershell_interpreter_flag) { "/thisflagisinvalid" } let(:valid_powershell_interpreter_flag) { "-Sta" } let!(:resource) do r = Chef::Resource::WindowsScript::PowershellScript.new("Powershell resource functional test", @run_context) |