Change 14610

jmistry
jmistry committed this change into //guest/perforce_software/p4ruby/main/test
Request Review
Download .zip
Fix unlink error on unit tests

Wrap the connect/disconnect in begin/ensure blocks to
ensure that the client disconnect even if there are failures
in a unit test.

Fix unicode unit test for 1.9.  When the contents of a file
is stored in a String object, ruby 1.9 sets the String's
encoding to the current locale.  This is overridden in the
test case and set to the correct value.  This may need to
be documented.

user visible change.
  • Files 15
  • Comments 0
15 edited 0 added 0 deleted
00_setup.rb#4
Loading...
01_info.rb#5
Loading...
02_environment.rb#4
Loading...
03_client.rb#4
Loading...
04_files.rb#6
Loading...
10_password.rb#4
Loading...
11_maps.rb#5
Loading...
12_specs.rb#2
Loading...
13_server.rb#2
Loading...
14_output.rb#4
Loading...
15_track.rb#6
Loading...
16_streams.rb#6
Loading...
17_streaming_handler.rb#2
Loading...
98_unicode.rb#4
Loading...
99_cleanup.rb#5
Loading...
Tip: Use n and p to cycle through the changes.