Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | When simulating an error in the close() system call, close the file descriptor anyway. Otherwise long running tests leak too many file-descriptors and crash. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
81ddbf43366c18ebdd46558d6a0fbee2 |
User & Date: | dan 2011-04-01 16:50:07.000 |
Context
2011-04-01
| ||
17:53 | Change analyze7.test so that it works without SQLITE_ENABLE_STAT2 defined. (check-in: 9415201c8a user: dan tags: trunk) | |
16:50 | When simulating an error in the close() system call, close the file descriptor anyway. Otherwise long running tests leak too many file-descriptors and crash. (check-in: 81ddbf4336 user: dan tags: trunk) | |
15:15 | Ensure that it is not possible to add a column to a system table using ALTER TABLE. (check-in: d9707ef8dc user: dan tags: trunk) | |
Changes
Changes to src/test_syscall.c.
︙ | ︙ | |||
210 211 212 213 214 215 216 217 218 219 220 221 222 223 | } /* ** A wrapper around close(). */ static int ts_close(int fd){ if( tsIsFail() ){ return -1; } return orig_close(fd); } /* ** A wrapper around access(). | > > > > > > | 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 | } /* ** A wrapper around close(). */ static int ts_close(int fd){ if( tsIsFail() ){ /* Even if simulating an error, close the original file-descriptor. ** This is to stop the test process from running out of file-descriptors ** when running a long test. If a call to close() appears to fail, SQLite ** never attempts to use the file-descriptor afterwards (or even to close ** it a second time). */ orig_close(fd); return -1; } return orig_close(fd); } /* ** A wrapper around access(). |
︙ | ︙ |
tool/mkopts.tcl became a regular file.
︙ | ︙ |