Overview
| Artifact ID: | 71b5cd6040af32da8cec3d643a7b6adb68fd98f3b172f5f34a2956c16946dba0 |
|---|---|
| Ticket: | f586089a2b0714405275c3cf8604e784a9c5641e
Test failures due to macOS_hangs merge |
| User & Date: | marc_culler on 2020-07-21 20:13:59 |
Changes
- icomment:
Here is my first guess about why these tests behave in an indeterminate way: The test is placing bets at the racetrack and it only passes if it wins. The mac notifier design includes a thread which runs select and queues file events when select reports a change in status for one of the files it is watching. I see test failures in Travis that look like this: --- Result was: {del calling recursive} {del after update} {notcalled was called!! file8} {del deleted notcalled} {del deleted myself} ---- Result should have been (exact matching): {del calling recursive} {del deleted notcalled} {del deleted myself} {del after update} I think this test failure is reporting that the call to update returned before notcalled was deleted, while the test expected it to return after. The random behavior would seem to indicate that sometimes update returns before notcalled is deleted and sometimes it returns afterward. Given that Tcl_WaitForEvent used to do a lot more work, since it would call Tcl_ServiceAll while it was supposedly waiting, I think it is not surprising that update might return earlier than it used to. But I think the bottom line is that we have two threads racing to complete different tasks. The test passes if one thread wins the race and it fails if the other one wins. I don't see how a test like that could ever be reliable. - login: "marc_culler"
- mimetype: "text/plain"
- username: "Marc Culler"