Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Require the SQLITE_ENABLE_INSTVFS symbol in order to compile testfixture with sqlite3_instvfs enabled. This allows fulltest to run on platforms for which we do not have a working hwtime.h (ex: ppc, s390). Change requested from the SuSE team. (CVS 5478) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
16c164e79c2033347a36d6f7150eb8d2 |
User & Date: | drh 2008-07-25 13:32:45.000 |
Context
2008-07-25
| ||
13:39 | Increase limits on memsubsys1 tests to accomodate the larger structure sizes on 64-bit platforms. (CVS 5479) (check-in: f7720f1bfc user: drh tags: trunk) | |
13:32 | Require the SQLITE_ENABLE_INSTVFS symbol in order to compile testfixture with sqlite3_instvfs enabled. This allows fulltest to run on platforms for which we do not have a working hwtime.h (ex: ppc, s390). Change requested from the SuSE team. (CVS 5478) (check-in: 16c164e79c user: drh tags: trunk) | |
12:49 | Make the libtclsqlite3.la shared library depend on a separate libsqlite3.la shared library. I think this flies in the face of the whole SQLite philosophy of minimal dependencies, but on the other hand, few people use that shared library and the capability has been requested from the SuSE team. (CVS 5477) (check-in: 83484b42bf user: drh tags: trunk) | |
Changes
Changes to src/test_osinst.c.
︙ | ︙ | |||
10 11 12 13 14 15 16 | ** ****************************************************************************** ** ** This file contains the implementation of an SQLite vfs wrapper that ** adds instrumentation to all vfs and file methods. C and Tcl interfaces ** are provided to control the instrumentation. ** | | > | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ** ****************************************************************************** ** ** This file contains the implementation of an SQLite vfs wrapper that ** adds instrumentation to all vfs and file methods. C and Tcl interfaces ** are provided to control the instrumentation. ** ** $Id: test_osinst.c,v 1.18 2008/07/25 13:32:45 drh Exp $ */ #ifdef SQLITE_ENABLE_INSTVFS /* ** C interface: ** ** sqlite3_instvfs_create() ** sqlite3_instvfs_destroy() ** sqlite3_instvfs_configure() ** |
︙ | ︙ | |||
805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 | pVfs = sqlite3_instvfs_create(zVfs, zParentVfs); if( pVfs ){ sqlite3_instvfs_configure(pVfs, binarylog_xcall, p, binarylog_xdel); } return pVfs; } /************************************************************************** *************************************************************************** ** Tcl interface starts here. */ #if SQLITE_TEST #include <tcl.h> struct InstVfsCall { Tcl_Interp *interp; Tcl_Obj *pScript; }; typedef struct InstVfsCall InstVfsCall; static void test_instvfs_xcall( | > > | 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 | pVfs = sqlite3_instvfs_create(zVfs, zParentVfs); if( pVfs ){ sqlite3_instvfs_configure(pVfs, binarylog_xcall, p, binarylog_xdel); } return pVfs; } #endif /* SQLITE_ENABLE_INSTVFS */ /************************************************************************** *************************************************************************** ** Tcl interface starts here. */ #if SQLITE_TEST #include <tcl.h> #ifdef SQLITE_ENABLE_INSTVFS struct InstVfsCall { Tcl_Interp *interp; Tcl_Obj *pScript; }; typedef struct InstVfsCall InstVfsCall; static void test_instvfs_xcall( |
︙ | ︙ | |||
1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 | break; } } return TCL_OK; } int SqlitetestOsinst_Init(Tcl_Interp *interp){ Tcl_CreateObjCommand(interp, "sqlite3_instvfs", test_sqlite3_instvfs, 0, 0); return TCL_OK; } | > > > > > > > > > > > > > > > > > > | | 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 | break; } } return TCL_OK; } #endif /* SQLITE_ENABLE_INSTVFS */ /* Alternative implementation of sqlite3_instvfs when the real ** implementation is unavailable. */ #ifndef SQLITE_ENABLE_INSTVFS static int test_sqlite3_instvfs( void * clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[] ){ Tcl_AppendResult(interp, "not compiled with -DSQLITE_ENABLE_INSTVFS; sqlite3_instvfs is " "unavailable", (char*)0); return TCL_ERROR; } #endif /* !defined(SQLITE_ENABLE_INSTVFS) */ int SqlitetestOsinst_Init(Tcl_Interp *interp){ Tcl_CreateObjCommand(interp, "sqlite3_instvfs", test_sqlite3_instvfs, 0, 0); return TCL_OK; } #endif /* SQLITE_TEST */ |