/ Check-in [8b617840]
Login

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

Overview
Comment:Enhance test 'zonefile1-6.5' to account for platform differences.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | zonefile
Files: files | file ages | folders
SHA3-256: 8b6178403fb6a7f87502c42026caf3da1c355b2ed9e780b347f4a05d7ffc1e18
User & Date: mistachkin 2018-02-27 15:47:41
Context
2018-02-27
19:50
Rationalize some code in zonefile.c. Fix other minor issues in the same. check-in: f11beb16 user: dan tags: zonefile
15:47
Enhance test 'zonefile1-6.5' to account for platform differences. check-in: 8b617840 user: mistachkin tags: zonefile
15:42
Adjustments to test numbers for the 'zonefile' extension. check-in: 55de6f14 user: mistachkin tags: zonefile
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ext/zonefile/zonefile1.test.

380
381
382
383
384
385
386

387
388




389

390
391
392
393
394
395
396
} {1 {failed to open file "test.dir" for writing}}

do_catchsql_test 6.4 {
  CREATE VIRTUAL TABLE zzz USING zonefile;
  INSERT INTO zzz_files(filename) VALUES('nosuchfile.zonefile');
} {1 {failed to open file "nosuchfile.zonefile" for reading}}


do_catchsql_test 6.5 {
  INSERT INTO zzz_files(filename) VALUES('test.dir');




} {1 {failed to read zonefile header from file "test.dir"}}


#-------------------------------------------------------------------------
# Check that errors generated when building a dictionary are handled.
# The zstd library routines for building a dictionary throw an error
# if they are provided with too little data.
#
# Also test that zstd_global_dict cannot be used to compress the zonefile







>
|
|
>
>
>
>
|
>







380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
} {1 {failed to open file "test.dir" for writing}}

do_catchsql_test 6.4 {
  CREATE VIRTUAL TABLE zzz USING zonefile;
  INSERT INTO zzz_files(filename) VALUES('nosuchfile.zonefile');
} {1 {failed to open file "nosuchfile.zonefile" for reading}}

if {$tcl_platform(platform)=="windows"} {
  do_catchsql_test 6.5 {
    INSERT INTO zzz_files(filename) VALUES('test.dir');
  } {1 {failed to open file "test.dir" for reading}}
} else {
  do_catchsql_test 6.5 {
    INSERT INTO zzz_files(filename) VALUES('test.dir');
  } {1 {failed to read zonefile header from file "test.dir"}}
}

#-------------------------------------------------------------------------
# Check that errors generated when building a dictionary are handled.
# The zstd library routines for building a dictionary throw an error
# if they are provided with too little data.
#
# Also test that zstd_global_dict cannot be used to compress the zonefile