Maurice Lombardi wrote:
Frank Heckenbach wrote:
Maurice Lombardi wrote:
Running the gpc test suite results in only one failure: y2k.pas (which is new). The problem is with the function sleep: Has this function been changed recently ? (We have been discussing at length of various delay functions).
Nope. (I haven't gotten around to doing anything about the delay issue yet, and AFAIUI, it doesn't affect sleep (whole seconds), anyway.)
What fails exactly?
First the test suite failed on this program. Then I have run it step by step under rhide (compiled with -D__BP_UNPORTABLE_ROUTINES__). The other functions give results as expected, but the sleep time seems to be zero. I have then recompiled from dos prompt with increasing sleep times (and deleting each time .o .gpi .gpm files to be sure) and run it. You may miss a 1 second delay, not a 10 or 100 seconds. No delay up to 10000 seconds, and then it stopped and I had not the patience to wait so long. (I had time to check from an other DOS window that date and time of the system have been changed and increased as expected).
I can't reproduce the problem. The test works in my DosEmu, at least. Perhaps you can play with the number in the program to find out if it fails when the delay should cross a day boundary (or year, or 0-based-century/millennium...). After all, it might be a bug in Dos or DJGPP (though I've looked at the DJGPP code, and it also seems correct to me)...
Frank