mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Improvements to memory leak detection. The --backtrace=NNN option is now
recognized by tester.tcl. Memory leak summaries are automatically written to the file ./memleak.txt and each leak is tagged with the test in which it occurred. The quick.test script runs on Linux with no errors and no leaks. (CVS 4273) FossilOrigin-Name: 21f6b31097692171c6493e6ca6de6acbd62dc595
This commit is contained in:
@@ -2657,6 +2657,10 @@ static int unixRandomness(void *pNotUsed, int nBuf, char *zBuf){
|
||||
/*
|
||||
** Sleep for a little while. Return the amount of time slept.
|
||||
** The argument is the number of microseconds we want to sleep.
|
||||
** The return value is the number of microseconds of sleep actually
|
||||
** requested from the underlying operating system, a number which
|
||||
** might be greater than or equal to the argument, but not less
|
||||
** than the argument.
|
||||
*/
|
||||
static int unixSleep(void *pNotUsed, int microseconds){
|
||||
#if defined(HAVE_USLEEP) && HAVE_USLEEP
|
||||
@@ -2665,7 +2669,7 @@ static int unixSleep(void *pNotUsed, int microseconds){
|
||||
#else
|
||||
int seconds = (microseconds+999999)/1000000;
|
||||
sleep(seconds);
|
||||
return seconds;
|
||||
return seconds*1000000;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user