Projects
openEuler:Mainline
sqlite
_service:tar_scm:0002-remove-fail-testcase-in-n...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0002-remove-fail-testcase-in-no-free-fd-situation.patch of Package sqlite
From defded46ea50037500590122d847ba6a7cb96110 Mon Sep 17 00:00:00 2001 From: eulerstorage <eulerstoragemt@huawei.com> Date: Sat, 11 Jan 2020 11:33:54 +0800 Subject: [PATCH] remove fail testcase in no free fd situation Remove testcase 1.1.1, 1.1.2 and 1.1.3, since it can not success in some situation if there is no enough fd resource. --- test/oserror.test | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/test/oserror.test b/test/oserror.test index a51301c..d46218f 100644 --- a/test/oserror.test +++ b/test/oserror.test @@ -40,47 +40,6 @@ proc do_re_test {tn script expression} { } -#-------------------------------------------------------------------------- -# Tests oserror-1.* test failures in the open() system call. -# - -# Test a failure in open() due to too many files. -# -# The xOpen() method of the unix VFS calls getcwd() as well as open(). -# Although this does not appear to be documented in the man page, on OSX -# 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. -# -if {![clang_sanitize_address]} { - unset -nocomplain rc - unset -nocomplain nOpen - set nOpen 20000 - do_test 1.1.1 { - set ::log [list] - set ::rc [catch { - for {set i 0} {$i < $::nOpen} {incr i} { sqlite3 dbh_$i test.db -readonly 1 } - } msg] - if {$::rc==0} { - # Some system (ex: Debian) are able to create 20000+ file descriptiors - # such systems will not fail here - set x ok - } elseif {$::rc==1 && $msg=="unable to open database file"} { - set x ok - } else { - set x [list $::rc $msg] - } - } {ok} - do_test 1.1.2 { - catch { for {set i 0} {$i < $::nOpen} {incr i} { dbh_$i close } } - } $::rc - if {$rc} { - do_re_test 1.1.3 { - lindex $::log 0 - } {^os_unix.c:\d+: \(\d+\) (open|getcwd)\(.*test.db\) - } - } -} - - # Test a failure in open() due to the path being a directory. # do_test 1.2.1 { -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2