http://bugs.winehq.org/show_bug.cgi?id=19982
--- Comment #53 from ray@pobox.co.uk 2009-10-01 13:56:02 --- Created an attachment (id=23869) --> (http://bugs.winehq.org/attachment.cgi?id=23869) Test Version of SIV and Test Result files
I have extended SIV to have a have a command line test option to check the APIC is as expected. To run this new test the command is: wine siv -save=[wine-apic]=stdout Within this .ZIP file apic-real.txt shows the output from a real windows system, apic-wine.txt showing the results from my wine system which was built from today's GIT and siv.exe is the test program
The general test loop is run 128K times and it uses SetThreadAffinityMask() to change to a different CPU, read the CPU APIC and check it is as expected. The 1st time uses a work thread and the actual thread handle, the 2nd test also uses a work thread but the Pseudo thread handle (0xFFFFFFFE) and the final test uses the main thread.
When a work thread is used the test currently fails, but passes when the main thread is used.
I hope this is of help and simple enough to use. I feel once this is passing then it would still be a good idea to run the SIV [Test APIC] test as this uses a work thread per CPU and may highlight issues not shown by the [wine-apic] test.