1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Adjust copy_file() lsmtest function so it works properly for locked database files on Win32.

FossilOrigin-Name: 54a3855583deac93c955ed77fe82be6a6b7aadd3fdb7e6b895888e2a4ff530bd
This commit is contained in:
mistachkin
2017-07-07 20:35:14 +00:00
parent 08f1efeb16
commit 1d91e9f26a
4 changed files with 29 additions and 19 deletions

View File

@ -11,6 +11,7 @@
#ifndef _WIN32
# include <unistd.h>
#endif
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@ -1522,6 +1523,10 @@ int main(int argc, char **argv){
const char *zReport = "malloc.txt NOT generated";
#endif
#if defined(_MSC_VER) || defined(__MSVCRT__)
_set_fmode(_O_BINARY);
#endif
testMallocInstall(tdb_lsm_env());
if( argc<2 ){