]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Fix the extension01.test script so that it works on windows. Fix a
authordrh <drh@noemail.net>
Mon, 16 Jun 2014 12:51:56 +0000 (12:51 +0000)
committerdrh <drh@noemail.net>
Mon, 16 Jun 2014 12:51:56 +0000 (12:51 +0000)
harmless compiler warning in the fileio extension.

FossilOrigin-Name: baf95a190907d05a847ae8b6a3dd60625c2a078a

ext/misc/fileio.c
manifest
manifest.uuid
test/extension01.test

index 6ab073535a72bbec0bcbd04d7f43491cb1b92909..f80949bff26c8d072cb7ce4c98632d47ec3a898c 100644 (file)
@@ -62,7 +62,7 @@ static void writefileFunc(
   FILE *out;
   const char *z;
   int n;
-  long rc;
+  sqlite3_int64 rc;
   const char *zFile;
 
   zFile = (const char*)sqlite3_value_text(argv[0]);
index c5c9c1fda48a0e71ec62793e2223a3959428c91a..9539234b2c3c9101b309e4205dd620c062d663dc 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Add\stest\scases\sfor\sthe\sfileio\sextension.
-D 2014-06-16T12:44:32.986
+C Fix\sthe\sextension01.test\sscript\sso\sthat\sit\sworks\son\swindows.\s\sFix\sa\s\nharmless\scompiler\swarning\sin\sthe\sfileio\sextension.
+D 2014-06-16T12:51:56.200
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in ed5e4aae4799f724699d5509fac2977786414dbb
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -109,7 +109,7 @@ F ext/icu/sqliteicu.h 728867a802baa5a96de7495e9689a8e01715ef37
 F ext/misc/amatch.c 678056a4bfcd83c4e82dea81d37543cd1d6dbee1
 F ext/misc/closure.c 636024302cde41b2bf0c542f81c40c624cfb7012
 F ext/misc/compress.c 76e45655f4046e756064ab10c62e18f2eb846b9f
-F ext/misc/fileio.c 2927bf833edad966ed222f0552c0602ae473ca16
+F ext/misc/fileio.c beea82bb5055b6590cffe2d2e6d922905894f691
 F ext/misc/fuzzer.c 136533c53cfce0957f0b48fa11dba27e21c5c01d
 F ext/misc/ieee754.c b0362167289170627659e84173f5d2e8fee8566e
 F ext/misc/nextchar.c 35c8b8baacb96d92abbb34a83a997b797075b342
@@ -466,7 +466,7 @@ F test/exclusive2.test 32798111aae78a5deec980eee383213f189df308
 F test/exec.test e949714dc127eaa5ecc7d723efec1ec27118fdd7
 F test/exists.test 8f7b27b61c2fbe5822f0a1f899c715d14e416e30
 F test/expr.test 67c9fd6f8f829e239dc8b0f4a08a73c08b09196d
-F test/extension01.test 06b3c61d9c87e262b2a3b61abc080be5b29e1eb4
+F test/extension01.test 00d13cec817f331a687a243e0e5a2d87b0e358c9
 F test/fallocate.test 3e979af17dfa7e5e9dda5eba1a696c04fa9d47f7
 F test/filectrl.test 14fa712e42c4cb791e09dfd58a6a03efb47ef13a
 F test/filefmt.test cb34663f126cbc2d358af552dcaf5c72769b0146
@@ -1177,7 +1177,7 @@ F tool/vdbe_profile.tcl 67746953071a9f8f2f668b73fe899074e2c6d8c1
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh 0abfd78ceb09b7f7c27c688c8e3fe93268a13b32
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P 0ca104d821d5841ab0754113be074c520cf07f23
-R ccaa3e1a4ad97ab90dbd1c64a76fa424
+P 8634333127c4d868d3ec27e88b5818f6479774f3
+R 353afc7fd0abf06433e6eda5525663c7
 U drh
-Z a84943f6024adba9b7ed1466702addbc
+Z c4508024fad1b2c6278c0f51a968dc30
index fc36f4c5fc15ba674a0bc2038743935e34aea92c..28daa06d8deb791cfef6106847ea651f20572a05 100644 (file)
@@ -1 +1 @@
-8634333127c4d868d3ec27e88b5818f6479774f3
\ No newline at end of file
+baf95a190907d05a847ae8b6a3dd60625c2a078a
\ No newline at end of file
index a96c52a01fe79185830535fb967c0eddbcc4f94b..97b772680e5ee3cb50d254018a715e29fc514ce9 100644 (file)
@@ -60,13 +60,21 @@ do_test 1.5 {
 } {0}
 
 do_test 1.6 {
-  file attributes ./file2.txt -permissions r--r--r--
+  if {$::tcl_platform(platform)=="unix"} {
+    file attributes ./file2.txt -permissions r--r--r--
+  } else {
+    file attributes ./file2.txt -readonly 1
+  }
   db eval {
     SELECT writefile('./file2.txt', 'Another test');
   }
 } {nil}
 do_test 1.7 {
-  file attributes ./file2.txt -permissions rw-r--r--
+  if {$::tcl_platform(platform)=="unix"} {
+    file attributes ./file2.txt -permissions rw-r--r--
+  } else {
+    file attributes ./file2.txt -readonly 0
+  }
   db eval {
     SELECT writefile(NULL, 'Another test');
   }