- Fix a race condition between the flushing and releasing of the index when the window is closed and the flushing by the indexer, by making sure -_cleanDirtyLogs retains its index and enters the closing group. This caused a crash.
- Fix an issue where _remainingLogs gets out of sync with the number of logs still in localLogSet when the log fails to parse. This caused an infinite loop and stopped the indexing from ever finishing.
Fixes #15984
(* Read Me.
This is the unit test runner for AppleScript. In order to run them from the command line, in adium/ folder, use
osascript unittest\ runner.applescript
piped to
tr '\r' '\n'
For some reason, Script Editor doesn't like the pipe character...
Anyway, this will compile and run the AppleScripts in ASUnitTests and report the results. The tr translates the old Mac CR to Unix LF. You should see Adium leap about while this is happening. Every unit test should clean up after itself, so that no windows are left lying around, extra accounts existing, etc.
The runner will report if any tests failed and the error number and message. It will also summarize with a number succeeded out of the total number.
error"Can't get any contacts because account is offline."
returnmissing value
endif
endif
endtell
endtell
endfindSomeParticipant
oncleanup()
tellapplication"Adium"
repeatwhileexistschatwindow1
closechatwindow1
endrepeat
endtell
endcleanup
endscript
onrun
--compile the .applescript files
do shell script"for i in ""ed formofunitTestDir&"*.applescript; do s=`basename $i .applescript`; osacompile -o ""ed formofunitTestDir&"/${s}.scpt ""ed formofunitTestDir&"/${s}.applescript ; done;"