aboutsummaryrefslogtreecommitdiff
path: root/src/test_devsym.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2008-09-12 10:22:40 +0000
committerdanielk1977 <danielk1977@noemail.net>2008-09-12 10:22:40 +0000
commit755339ec0f9afd71c6d9bc86abbc7db144f82f0a (patch)
tree84f86bce7949f3509cf139d01ed6c013dfa18aee /src/test_devsym.c
parent540cf6a1927f7b5db0a7d3eac6e544563e3e849c (diff)
downloadsqlite-755339ec0f9afd71c6d9bc86abbc7db144f82f0a.tar.gz
sqlite-755339ec0f9afd71c6d9bc86abbc7db144f82f0a.zip
Add a case to permutations.test to run tests with the IOCAP_SAFEAPPEND property set. (CVS 5693)
FossilOrigin-Name: 80bdaafa77ec5c967f633eaaf5ee6f493a6e5a56
Diffstat (limited to 'src/test_devsym.c')
-rw-r--r--src/test_devsym.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/test_devsym.c b/src/test_devsym.c
index 0314804cd..0e2673a42 100644
--- a/src/test_devsym.c
+++ b/src/test_devsym.c
@@ -14,7 +14,7 @@
** different device types (by overriding the return values of the
** xDeviceCharacteristics() and xSectorSize() methods).
**
-** $Id: test_devsym.c,v 1.7 2008/06/06 11:11:26 danielk1977 Exp $
+** $Id: test_devsym.c,v 1.8 2008/09/12 10:22:40 danielk1977 Exp $
*/
#if SQLITE_TEST /* This file is used for testing only */
@@ -234,10 +234,14 @@ static int devsymOpen(
int flags,
int *pOutFlags
){
+ int rc;
devsym_file *p = (devsym_file *)pFile;
- pFile->pMethods = &devsym_io_methods;
p->pReal = (sqlite3_file *)&p[1];
- return sqlite3OsOpen(g.pVfs, zName, p->pReal, flags, pOutFlags);
+ rc = sqlite3OsOpen(g.pVfs, zName, p->pReal, flags, pOutFlags);
+ if( p->pReal->pMethods ){
+ pFile->pMethods = &devsym_io_methods;
+ }
+ return rc;
}
/*