aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2022-11-14 18:57:21 +0000
committerdrh <>2022-11-14 18:57:21 +0000
commit1da477d3abd4f23a5ec5f00903305b774f319b0c (patch)
treeaeb620e0c131d88fae0f3725ff215990eec69b8e /src
parentcfce889cda547daf497895dfbfc5e434a1c10671 (diff)
downloadsqlite-1da477d3abd4f23a5ec5f00903305b774f319b0c.tar.gz
sqlite-1da477d3abd4f23a5ec5f00903305b774f319b0c.zip
Change the fake_big_file test command so that it fails for files larger than
2MB on Windows, as we have observed that Window10 will sometimes bluescreen when operating on very large sparse files. FossilOrigin-Name: d39ffd2abadcc85c46ba17612f9f575005b4818e18bf39362b8ee574837cfad9
Diffstat (limited to 'src')
-rw-r--r--src/test2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test2.c b/src/test2.c
index 850e1e1a0..d3c1fab2e 100644
--- a/src/test2.c
+++ b/src/test2.c
@@ -521,6 +521,13 @@ static int SQLITE_TCLAPI fake_big_file(
return TCL_ERROR;
}
if( Tcl_GetInt(interp, argv[1], &n) ) return TCL_ERROR;
+#if defined(_WIN32)
+ if( n>2 ){
+ Tcl_AppendResult(interp, "cannot create %dMB file because Windows "
+ "does not support sparse files", n);
+ return TCL_ERROR;
+ }
+#endif
pVfs = sqlite3_vfs_find(0);
nFile = (int)strlen(argv[2]);