mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
For lsmtest, use a more portable means of setting open() files to binary.
FossilOrigin-Name: aea6e0ffd33f41482f1b53b9f21b77add2865abda4eec1d9ee197177f74f43d0
This commit is contained in:
@@ -1240,7 +1240,7 @@ static int do_writer_test(int nArg, char **azArg){
|
||||
printf("Preparing file... ");
|
||||
fflush(stdout);
|
||||
unlink("writer.out");
|
||||
fd = open("writer.out", O_RDWR|O_CREAT, 0664);
|
||||
fd = open("writer.out", O_RDWR|O_CREAT|_O_BINARY, 0664);
|
||||
if( fd<0 ){
|
||||
testPrintError("open(): %d - %s\n", errno, strerror(errno));
|
||||
return -1;
|
||||
@@ -1523,10 +1523,6 @@ 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