/ Check-in [e4766cab]
Login

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

Overview
Comment:Adjust the fts3rank.test module so that it works on big-endian systems (hopefully - I don't have a big-endian machine to test the change on.)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:e4766cabdf64d8e998048ae43154466fc9c3fad0b86102a42b65122abfcbbe55
User & Date: drh 2018-01-24 14:39:18
Context
2018-01-24
14:40
Interchange the numeric codes for CURSOR_VALID and CURSOR_INVALID to obtain a small size decrease and performance increase. check-in: e0f192ea user: drh tags: trunk
14:39
Adjust the fts3rank.test module so that it works on big-endian systems (hopefully - I don't have a big-endian machine to test the change on.) check-in: e4766cab user: drh tags: trunk
13:15
Improved error message output when the btreeinfo.c extension is run in a connection that lacks sqlite_dbpage support. check-in: 461b0b81 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/fts3rank.test.

    10     10   #*************************************************************************
    11     11   # This file implements regression tests for SQLite library.  The
    12     12   # focus of this script is testing the FTS3 module.
    13     13   #
    14     14   
    15     15   set testdir [file dirname $argv0]
    16     16   source $testdir/tester.tcl
    17         -set testprefix fts3expr5
           17  +set testprefix fts3rank
    18     18   
    19     19   # If SQLITE_ENABLE_FTS3 is defined, omit this file.
    20     20   ifcapable !fts3 {
    21     21     finish_test
    22     22     return
    23     23   }
    24     24   
................................................................................
    52     52     SELECT * FROM t1 ORDER BY rank(matchinfo(t1), 1.0, 1.0) DESC, rowid
    53     53   } {1 {invalid matchinfo blob passed to function rank()}}
    54     54   
    55     55   do_catchsql_test 1.4 {
    56     56     SELECT * FROM t1 ORDER BY rank(x'0000000000000000') DESC, rowid
    57     57   } {0 {{one two} one {one two} three {one two} two}}
    58     58   
    59         -do_catchsql_test 1.5 {
    60         -  SELECT * FROM t1 ORDER BY rank(x'0100000001000000') DESC, rowid
    61         -} {1 {invalid matchinfo blob passed to function rank()}}
           59  +if {$tcl_platform(byteOrder)=="littleEndian"} {
           60  +  do_catchsql_test 1.5le {
           61  +    SELECT * FROM t1 ORDER BY rank(x'0100000001000000') DESC, rowid
           62  +  } {1 {invalid matchinfo blob passed to function rank()}}
           63  +} else {
           64  +  do_catchsql_test 1.5be {
           65  +    SELECT * FROM t1 ORDER BY rank(x'0000000100000001') DESC, rowid
           66  +  } {1 {invalid matchinfo blob passed to function rank()}}
           67  +}
    62     68   
    63     69   finish_test
    64         -