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:
@ -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 ){
|
||||
|
Reference in New Issue
Block a user