[FIX] UUID testprimitive random on win32

Doug Way dway at riskmetrics.com
Tue Jan 7 19:40:32 UTC 2003

Looks like the right idea, except "Smalltalk platformName" returns "Win32" on my platform, not "win32", so you'll need to fix that.  Once I fix that in my image, all the tests pass.

(Side note:  It seems like there ought to be class-side accessors somewhere for the basic platform tests, such as "Smalltalk isWindowsPlatform", to centralize this stuff.)

Also, it might be worth adding a brief comment in this method explaining why this platform test is there, for future reference.

- Doug Way

John M McIntosh wrote:
> Ok I need someone on windows to test this.
> Because some windows platforms one-way hash the UUID to obscure the
> generating computer the test uuid random logic is invoked which fails.
> It's unclear if the version number is also hashed because people sent
> me no less than three different variations of UUIDs. Thus this
> changeset terminates the test early if the platform is win32.
> To test do "TestRunner open" then select TestUUIDPrimitives and all 9
> tests should run green. If it doesn't fix it, or perhaps I've not
> noticed another failure case then please email 4 or 5 UUID from your
> windows machine and an indication of which test fails.
>   ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>                                         Name: UUIDMicrosoftDrifting-JMM.1.cs.gz
>    UUIDMicrosoftDrifting-JMM.1.cs.gz    Type: ChangeSet (application/x-unknown-content-type-cs_auto_file)
>                                     Encoding: base64

More information about the Squeak-dev mailing list