djberg96/win32-eventlog — pull request #2 by aogail (2012-02-10 19:19:26+00:00)
Title: Unit test to check whether multiple event reads return the same description

This is a unit test I wrote to reproduce a string corruption bug in win32-eventlog. Sometimes, when win32-eventlog reads an event, a few characters in the description are corrupted. I have been trying to figure out what is going on for a few days, but my investigations have proven fruitless. So, I am posting the unit test for inclusion upstream in the hope that someone more knowledgeable than I in the ruby/win32 realm might have better luck.

I've run the test on a system running XP and another running 7. The error seemed to occur more frequently on 7, for whatever that's worth. I had to add the extra iterations to make it occur reliably on XP. I have also tried using both Ruby 1.8.7 and 1.9.2, to no effect that I could see.