2018-06-05 07:26:16 +00:00
|
|
|
--- sqlite-src-3240000/test/oserror.test.old 2018-06-05 08:40:35.656122573 +0200
|
|
|
|
+++ sqlite-src-3240000/test/oserror.test 2018-06-05 08:40:45.614935197 +0200
|
|
|
|
@@ -51,20 +51,20 @@
|
2011-04-29 10:30:08 +00:00
|
|
|
# a call to getcwd() may fail if there are no free file descriptors. So
|
|
|
|
# an error may be reported for either open() or getcwd() here.
|
|
|
|
#
|
2015-01-20 08:42:24 +00:00
|
|
|
-if {![clang_sanitize_address]} {
|
|
|
|
- do_test 1.1.1 {
|
|
|
|
- set ::log [list]
|
|
|
|
- list [catch {
|
2018-06-05 07:26:16 +00:00
|
|
|
- for {set i 0} {$i < 20000} {incr i} { sqlite3 dbh_$i test.db -readonly 1 }
|
2015-01-20 08:42:24 +00:00
|
|
|
- } msg] $msg
|
|
|
|
- } {1 {unable to open database file}}
|
|
|
|
- do_test 1.1.2 {
|
2018-06-05 07:26:16 +00:00
|
|
|
- catch { for {set i 0} {$i < 20000} {incr i} { dbh_$i close } }
|
2015-01-20 08:42:24 +00:00
|
|
|
- } {1}
|
|
|
|
- do_re_test 1.1.3 {
|
|
|
|
- lindex $::log 0
|
|
|
|
- } {^os_unix.c:\d+: \(\d+\) (open|getcwd)\(.*test.db\) - }
|
|
|
|
-}
|
|
|
|
+#if {![clang_sanitize_address]} {
|
|
|
|
+# do_test 1.1.1 {
|
|
|
|
+# set ::log [list]
|
|
|
|
+# list [catch {
|
2018-06-05 07:26:16 +00:00
|
|
|
+# for {set i 0} {$i < 20000} {incr i} { sqlite3 dbh_$i test.db -readonly 1 }
|
2015-01-20 08:42:24 +00:00
|
|
|
+# } msg] $msg
|
|
|
|
+# } {1 {unable to open database file}}
|
|
|
|
+# do_test 1.1.2 {
|
2018-06-05 07:26:16 +00:00
|
|
|
+# catch { for {set i 0} {$i < 20000} {incr i} { dbh_$i close } }
|
2015-01-20 08:42:24 +00:00
|
|
|
+# } {1}
|
|
|
|
+# do_re_test 1.1.3 {
|
|
|
|
+# lindex $::log 0
|
|
|
|
+# } {^os_unix.c:\d+: \(\d+\) (open|getcwd)\(.*test.db\) - }
|
|
|
|
+#}
|
2011-04-29 10:30:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Test a failure in open() due to the path being a directory.
|