apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59767] testreslist test fails randomly
Date Thu, 20 Apr 2017 08:41:28 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=59767

--- Comment #1 from Thorsten Schöning <tschoening@am-soft.de> ---
I have exactly the same problem now, with the difference that the test might
only succeed in 20% of all runs on my machine. I built the lib and ran the
tests in 2015 already and ran into Bug 59756 then, but not this one. Since
then, a lot had changed in my machine, Windows 8.1 vs. 10, C++Builder RAD 10
vs. 10.1 vs. 10.2, but the hardware is the same, especially the CPU.

Looks like some timing issue in "test_shrinking" to me, because if I set a
breakpoint in the last loop and therefore provide some additional waiting time,
the test seems to always succeed. Without that breakpoint or directly run on
the shell, the test seems to fail most of the times.

>    /*
>     * Now free the remaining elements. This should trigger the shrinking of
>     * the list
>     */
>    for (i = 0; i < RESLIST_SMAX - 1; i++) {
>BP      rv = apr_reslist_release(rl, resources[i]);
>        ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
>    }

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message