Blame SOURCES/sqlite-3.8.10.1-tcl-regress-tests.patch

11c328
This patch disables a test which caused failed assertion in tcl 8.6.3.
11c328
According to sqlite upstream[1], this should be fixed in tcl 8.6.5.
11c328
11c328
[1] http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2015-May/059518.html
11c328
11c328
diff -up sqlite-src-3130000/test/shell1.test.orig sqlite-src-3130000/test/shell1.test
11c328
--- sqlite-src-3140100/test/shell1.test.orig	2016-08-12 02:17:02.000000000 +0200
11c328
+++ sqlite-src-3140100/test/shell1.test	2016-08-15 15:00:59.869664051 +0200
11c328
@@ -855,67 +855,67 @@ do_test shell1-4.6 {
11c328
 
11c328
 # Test using arbitrary byte data with the shell via standard input/output.
11c328
 #
11c328
-do_test shell1-5.0 {
11c328
-  #
11c328
-  # NOTE: Skip NUL byte because it appears to be incompatible with command
11c328
-  #       shell argument parsing.
11c328
-  #
11c328
-  for {set i 1} {$i < 256} {incr i} {
11c328
-    #
11c328
-    # NOTE: Due to how the Tcl [exec] command works (i.e. where it treats
11c328
-    #       command channels opened for it as textual ones), the carriage
11c328
-    #       return character (and on Windows, the end-of-file character)
11c328
-    #       cannot be used here.
11c328
-    #
11c328
-    if {$i==0x0D || ($tcl_platform(platform)=="windows" && $i==0x1A)} {
11c328
-      continue
11c328
-    }
11c328
-    if {$i>=0xE0 && $tcl_platform(os)=="OpenBSD"}  continue
11c328
-    if {$i>=0xE0 && $i<=0xEF && $tcl_platform(os)=="Linux"}  continue
11c328
-    set hex [format %02X $i]
11c328
-    set char [subst \\x$hex]; set oldChar $char
11c328
-    set escapes [list]
11c328
-    if {$tcl_platform(platform)=="windows"} {
11c328
-      #
11c328
-      # NOTE: On Windows, we need to escape all the whitespace characters,
11c328
-      #       the alarm (\a) character, and those with special meaning to
11c328
-      #       the SQLite shell itself.
11c328
-      #
11c328
-      set escapes [list \
11c328
-          \a \\a \b \\b \t \\t \n \\n \v \\v \f \\f \r \\r \
11c328
-          " " "\" \"" \" \\\" ' \"'\" \\ \\\\]
11c328
-    } else {
11c328
-      #
11c328
-      # NOTE: On Unix, we need to escape most of the whitespace characters
11c328
-      #       and those with special meaning to the SQLite shell itself.
11c328
-      #       The alarm (\a), backspace (\b), and carriage-return (\r)
11c328
-      #       characters do not appear to require escaping on Unix.  For
11c328
-      #       the alarm and backspace characters, this is probably due to
11c328
-      #       differences in the command shell.  For the carriage-return,
11c328
-      #       it is probably due to differences in how Tcl handles command
11c328
-      #       channel end-of-line translations.
11c328
-      #
11c328
-      set escapes [list \
11c328
-          \t \\t \n \\n \v \\v \f \\f \
11c328
-          " " "\" \"" \" \\\" ' \"'\" \\ \\\\]
11c328
-    }
11c328
-    set char [string map $escapes $char]
11c328
-    set x [catchcmdex test.db ".print $char\n"]
11c328
-    set code [lindex $x 0]
11c328
-    set res [lindex $x 1]
11c328
-    if {$code ne "0"} {
11c328
-      error "failed with error: $res"
11c328
-    }
11c328
-    if {$res ne "$oldChar\n"} {
11c328
-      if {[llength $res] > 0} {
11c328
-        set got [format %02X [scan $res %c]]
11c328
-      } else {
11c328
-        set got <empty>
11c328
-      }
11c328
-      error "failed with byte $hex mismatch, got $got"
11c328
-    }
11c328
-  }
11c328
-} {}
11c328
+#do_test shell1-5.0 {
11c328
+#  #
11c328
+#  # NOTE: Skip NUL byte because it appears to be incompatible with command
11c328
+#  #       shell argument parsing.
11c328
+#  #
11c328
+#  for {set i 1} {$i < 256} {incr i} {
11c328
+#    #
11c328
+#    # NOTE: Due to how the Tcl [exec] command works (i.e. where it treats
11c328
+#    #       command channels opened for it as textual ones), the carriage
11c328
+#    #       return character (and on Windows, the end-of-file character)
11c328
+#    #       cannot be used here.
11c328
+#    #
11c328
+#    if {$i==0x0D || ($tcl_platform(platform)=="windows" && $i==0x1A)} {
11c328
+#      continue
11c328
+#    }
11c328
+#    if {$i>=0xE0 && $tcl_platform(os)=="OpenBSD"}  continue
11c328
+#    if {$i>=0xE0 && $i<=0xEF && $tcl_platform(os)=="Linux"}  continue
11c328
+#    set hex [format %02X $i]
11c328
+#    set char [subst \\x$hex]; set oldChar $char
11c328
+#    set escapes [list]
11c328
+#    if {$tcl_platform(platform)=="windows"} {
11c328
+#      #
11c328
+#      # NOTE: On Windows, we need to escape all the whitespace characters,
11c328
+#      #       the alarm (\a) character, and those with special meaning to
11c328
+#      #       the SQLite shell itself.
11c328
+#      #
11c328
+#      set escapes [list \
11c328
+#          \a \\a \b \\b \t \\t \n \\n \v \\v \f \\f \r \\r \
11c328
+#          " " "\" \"" \" \\\" ' \"'\" \\ \\\\]
11c328
+#    } else {
11c328
+#      #
11c328
+#      # NOTE: On Unix, we need to escape most of the whitespace characters
11c328
+#      #       and those with special meaning to the SQLite shell itself.
11c328
+#      #       The alarm (\a), backspace (\b), and carriage-return (\r)
11c328
+#      #       characters do not appear to require escaping on Unix.  For
11c328
+#      #       the alarm and backspace characters, this is probably due to
11c328
+#      #       differences in the command shell.  For the carriage-return,
11c328
+#      #       it is probably due to differences in how Tcl handles command
11c328
+#      #       channel end-of-line translations.
11c328
+#      #
11c328
+#      set escapes [list \
11c328
+#          \t \\t \n \\n \v \\v \f \\f \
11c328
+#          " " "\" \"" \" \\\" ' \"'\" \\ \\\\]
11c328
+#    }
11c328
+#    set char [string map $escapes $char]
11c328
+#    set x [catchcmdex test.db ".print $char\n"]
11c328
+#    set code [lindex $x 0]
11c328
+#    set res [lindex $x 1]
11c328
+#    if {$code ne "0"} {
11c328
+#      error "failed with error: $res"
11c328
+#    }
11c328
+#    if {$res ne "$oldChar\n"} {
11c328
+#      if {[llength $res] > 0} {
11c328
+#        set got [format %02X [scan $res %c]]
11c328
+#      } else {
11c328
+#        set got <empty>
11c328
+#      }
11c328
+#      error "failed with byte $hex mismatch, got $got"
11c328
+#    }
11c328
+#  }
11c328
+#} {}
11c328
 
11c328
 # These test cases do not work on MinGW
11c328
 if 0 {