Closed Bug 928385 Opened 11 years ago Closed 10 years ago

[OS.File] xpcshell-test "test_unique.js" sometimes leaves files behind causing subsequent runs to fail.

Categories

(Toolkit Graveyard :: OS.File, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 801376

People

(Reporter: nmaier, Unassigned)

Details

(Whiteboard: [Async:ready][mentor=Yoric][lang=js])

Sometimes test_unique.js, introduced in bug 866571, leaves the dummy* files behind. Running the test again will then fail. You can fix that by removing the offending files yourself, of course.

I haven't really figured out any steps to reproduce yet, but it happened a couple of times so far, always on a slow Ubuntu VM... I *think* there test timeouts once or twice.

Would be great if the test made sure the directory was clean before running the code.
Assignee: nobody → marcos
Marcos, are you working on that bug?
Flags: needinfo?(marcos)
Assignee: marcos → nobody
Flags: needinfo?(marcos)
Whiteboard: [Async][mentor=Yoric][lang=js]
Whiteboard: [Async][mentor=Yoric][lang=js] → [Async:ready][mentor=Yoric][lang=js]
I couldn't reproduce it on OSX with 300+ times of test running.
Could we just collect all the paths and finally delete them to avoid that risk?
I suspect that this has been fixed in Bug 801376.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.