1.0.46.23: fix an actual random bug in mkstemp test
authorjimwise <jimwise>
Thu, 3 Mar 2011 20:01:37 +0000 (20:01 +0000)
committerjimwise <jimwise>
Thu, 3 Mar 2011 20:01:37 +0000 (20:01 +0000)
commitf849f46aa175919bd46a32d9305b1162f9d0d2f5
treed69a952a725dbdfb359046adb4976eaddbba9ef7
parent17c4e8486b40a6ac1c1dc5094d2e706f4cf229ed
1.0.46.23: fix an actual random bug in mkstemp test

 On some platforms (including Solaris, FWIW), the character "."  is one of
 the characters mkstemp can use when filling in an "XXXXXX" template.  When
 this (randomly) occurs during the running of this test, PATHNAME-NAME, of
 course breaks on the last such random "." character, and the test fails in
 a way which will not repeat until the next time such a character is
 randomly chosen.

 Since readdir actually returns a string, break the string on the first "."
 explicitly, instead of making a path from the string and calling
 pathname-name.

 This will need to be revisited if we add mkstemp support on win32 in the
 future.
contrib/sb-posix/posix-tests.lisp
version.lisp-expr