[Bug 16548] New: qedit:mediadet.c test is skipped due to renaming a file

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Dec 17 13:51:51 CST 2008


http://bugs.winehq.org/show_bug.cgi?id=16548

           Summary: qedit:mediadet.c test is skipped due to renaming a file
           Product: Wine
           Version: 1.1.10
          Platform: PC-x86-64
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: testcases
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: kgbricola at web.de


Created an attachment (id=18023)
 --> (http://bugs.winehq.org/attachment.cgi?id=18023)
hacky mediadet.c test debug patch

GetTempFileNameW() returns sometimes the same name in both calls in mediadet.c.
As said in MSDN the name has to be unique. It is unique, but the test deletes
the unique file and generates a new one with a new extension. In the next call
the GetTempFileNameW() returns another or the same name (the unique file was
deleted before).

But the test assumes that renaming the file extension gets a new unique one
(which seems to fit on windows XP/2000 - see http://test.winehq.org/data - but
not for wine). This works mostly - not all times - in the first run with a
clean temp folder. The chance is really small to hit two times the same name.

I haven't checked this on windows but it is affected, too, I think (probably
GetTempFileNameW() has an internal static variable which generates every time a
new name from the one before, or so ...).


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list