/[smecontribs]/rpms/sqlite/contribs9/sqlite-3.7.7.1-stupid-openfiles-test.patch
ViewVC logotype

Contents of /rpms/sqlite/contribs9/sqlite-3.7.7.1-stupid-openfiles-test.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Feb 27 19:41:49 2018 UTC (6 years, 8 months ago) by jpp
Branch: MAIN
CVS Tags: sqlite-3_7_17-8_el7, sqlite-3_7_17-9_el6_sme, HEAD
Initial import

1 diff -up sqlite-src-3070701/test/oserror.test.openfiles sqlite-src-3070701/test/oserror.test
2 --- sqlite-src-3070701/test/oserror.test.openfiles 2011-07-13 09:56:46.025857411 +0300
3 +++ sqlite-src-3070701/test/oserror.test 2011-07-13 09:57:11.634759798 +0300
4 @@ -51,19 +51,19 @@ proc do_re_test {tn script expression} {
5 # a call to getcwd() may fail if there are no free file descriptors. So
6 # an error may be reported for either open() or getcwd() here.
7 #
8 -puts "Possible valgrind error about invalid file descriptor follows:"
9 -do_test 1.1.1 {
10 - set ::log [list]
11 - list [catch {
12 - for {set i 0} {$i < 2000} {incr i} { sqlite3 dbh_$i test.db -readonly 1 }
13 - } msg] $msg
14 -} {1 {unable to open database file}}
15 -do_test 1.1.2 {
16 - catch { for {set i 0} {$i < 2000} {incr i} { dbh_$i close } }
17 -} {1}
18 -do_re_test 1.1.3 {
19 - lindex $::log 0
20 -} {^os_unix.c:\d+: \(\d+\) (open|getcwd)\(.*test.db\) - }
21 +#puts "Possible valgrind error about invalid file descriptor follows:"
22 +#do_test 1.1.1 {
23 +# set ::log [list]
24 +# list [catch {
25 +# for {set i 0} {$i < 2000} {incr i} { sqlite3 dbh_$i test.db -readonly 1 }
26 +# } msg] $msg
27 +#} {1 {unable to open database file}}
28 +#do_test 1.1.2 {
29 +# catch { for {set i 0} {$i < 2000} {incr i} { dbh_$i close } }
30 +#} {1}
31 +#do_re_test 1.1.3 {
32 +# lindex $::log 0
33 +#} {^os_unix.c:\d+: \(\d+\) (open|getcwd)\(.*test.db\) - }
34
35
36 # Test a failure in open() due to the path being a directory.

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed