[Seaside-dev] WAPlatformTest>>testTerminate
Michael Lucas-Smith
mlucas-smith at cincom.com
Tue Apr 21 23:55:26 UTC 2009
Neat test,
However, when a process is terminated in VisualWorks and it catches the
termination with an ensure: or ifCurtailed or something else, it is not
guaranteed that the ensure code will run before the process doing the
terminating will run.
There are two things you can do here:
a) Add another semaphore in to wait until the ensure has run - but this
might defeat the purpose
b) Set the priority of the process you're testing to be higher than the
running process, eg:
process priority: Processor activeProcess priority + 1.
I'd recommend (b) as the best way to fix it.
Cheers,
Michael
More information about the seaside-dev
mailing list