/ Check-in [9f604418]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Another Win32 portability fix for the 'zipfile' tests.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | testFixes
Files: files | file ages | folders
SHA3-256:9f604418ca21472d84d754f4c3b7f170e5c2bff05e8cee86640e45b43bc53a49
User & Date: mistachkin 2018-03-17 00:44:29
Context
2018-03-17
02:13
For 'zipfile', detect attempts to cause a duplicate entry via UPDATE. check-in: cf78a882 user: mistachkin tags: testFixes
00:44
Another Win32 portability fix for the 'zipfile' tests. check-in: 9f604418 user: mistachkin tags: testFixes
2018-03-16
23:54
Win32 portability fixes to the 'fileio' extension. check-in: 9d2b0f8b user: mistachkin tags: testFixes
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/zipfile2.test.

    48     48     CREATE VIRTUAL TABLE bbb USING zipfile("testzip");
    49     49     CREATE VIRTUAL TABLE ccc USING zipfile(`testzip`);
    50     50     CREATE VIRTUAL TABLE ddd USING zipfile([testzip]);
    51     51     CREATE VIRTUAL TABLE eee USING zipfile(testzip);
    52     52     CREATE VIRTUAL TABLE fff USING zipfile('test''zip');
    53     53   }
    54     54   
           55  +if {$::tcl_platform(platform)=="windows"} {
           56  +  set res {1 {cannot open file: testdir}}
           57  +} else {
           58  +  set res {1 {error in fread()}}
           59  +}
    55     60   do_test 2.0 {
    56     61     forcedelete testdir
    57     62     file mkdir testdir
    58     63     execsql { CREATE VIRTUAL TABLE hhh USING zipfile('testdir') }
    59     64     catchsql { SELECT * FROM hhh } 
    60         -} {1 {error in fread()}}
           65  +} $res
    61     66   
    62     67   
    63     68   set archive {
    64     69     504B0304140000080000D4A52BEC09F3B6E0110000001100000005000900612E
    65     70     747874555405000140420F00636F6E74656E7473206F6620612E747874504B03
    66     71     04140000080000D4A52BECD98916A7110000001100000005000900622E747874
    67     72     555405000140420F00636F6E74656E7473206F6620622E747874504B01021E03