Bug 63514

Summary: Fix filesystem_unittest.FileSystemTest test_read_and_write_file()
Product: WebKit Reporter: Roland Steiner <rolandsteiner>
Component: Tools / TestsAssignee: Roland Steiner <rolandsteiner>
Status: RESOLVED FIXED    
Severity: Normal CC: dominicc, dpranke, tony, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 61772, 63419, 63528    
Attachments:
Description Flags
Patch none

Description Roland Steiner 2011-06-28 00:02:44 PDT
test_read_and_write_file in the FileSystemTest unit test has 3 bugs:

.) any raised exception from assertEquals is swallowed by the 'except' clause
.) text/binary_path is not 'None' after mktemp, but os.remove may still raise an exception if no data was actually written to the file
.) write_text_file is used instead of write_binary_file to write binary contents (this again was swallowed by 'except')
Comment 1 Roland Steiner 2011-06-28 00:06:32 PDT
Created attachment 98868 [details]
Patch
Comment 2 WebKit Review Bot 2011-06-28 11:29:30 PDT
Comment on attachment 98868 [details]
Patch

Clearing flags on attachment: 98868

Committed r89944: <http://trac.webkit.org/changeset/89944>
Comment 3 WebKit Review Bot 2011-06-28 11:29:34 PDT
All reviewed patches have been landed.  Closing bug.