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

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