Apache OpenOffice (AOO) Bugzilla – Issue 92936
[Automation] File I/O functions need warnlogs on error
Last modified: 2013-08-07 15:07:50 UTC
Under certain conditions saving files might fail. We need a warnlog in that case.
CCing HDE
hFileWait() has been modified to take an optional boolean parameter that - if set to TRUE - forces the function to issue a warnlog if any dialog appears after triggering the File I/O operation. This is enabled for all hFileSave*() functions by default and is a tribute to lazy test writers who do not want to check the outcome of their file-ops manually. This change is high risk.
Note that the new warning mechanism is turned *off* for the hFileOpen* functions because a change to the function interfaces would be necessary (explicitly turn off the warnings) and this again would require changes to quite a lot of test scripts.
Changed interface: hFileWait( optional bWarnlog ) as integer Where bWarnlog = true prints a warnlog if any dialog pops up. This is the default. This should never happen when writing files. Verified with a number of tests on Windows and Linux spread over multiple modules.
Verified
In m6. Closed.