#1071: Intermittent failure with t/pmc/os.t test 9
--------------------+-------------------------------------------------------
Reporter: mikehh | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: none | Version: trunk
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
--------------------+-------------------------------------------------------
Comment(by mikehh):
The only times I have had a failure with this (only twice in a large
number of tests) - it has been the atime (access time) component that has
differed by 1 (second). What the test does: it runs a perl "stat" and
places that in the <<CODE portion of the pir_output_is and then runs the
pir code which calls the os.pmc "stat" function from pir and compares the
output. Under most circumstances this would be equal - but in rare
circumstances the access time of the two different calls could differ
since the two calls could be just before and just after the second tick.
The access time is the only aspect of the test that could differ. It
would entail a complete rewrite of the test and using the access functions
for individual elements, which would of course, give better coverage - so
maybe it is worthwhile.
I will make an attempt at this "real soon now", when I have some time
available for it - but it is not a high priority. Unless someone beats me
to it :-}
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1071#comment:5>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets