Thanks to visit codestin.com
Credit goes to chromium.googlesource.com
Sign in
chromium
/
external
/
github.com
/
sqlite
/
sqlite
/
HEAD
/
src
/
test_vfs.c
065c0a6
Test app/script patches from Jan Nijtmans for cygwin. Add/replace many more sentinel arguments for TCL variadic functions which specifically need a NULL trailing argument. With this, 'make test' on cygwin runs to completion for me, with 134 of 329227 tests failing. MSC build fails the same 13 tests which fail for me in trunk.
by stephan
· 4 months ago
b6503f1
Cygwin-centric fixes from Jan Nijtmans.
by stephan
· 5 months ago
4ab343c
Enhance tests to ensure that blocking locks, and not calls to xSleep(), are being used by SQLITE_ENABLE_SETLK_TIMEOUT builds when they should be.
by dan
· 7 months ago
064b681
First attempt at getting the build to work with Tcl 9.0.
by drh
· 12 months ago
ca3aabd
Fix a race condition during hot-journal rollback that could theoretically cause spurious corruption errors.
by dan
· 2 years, 6 months ago
pending-lock-race
7093a3b
Fix some test code so that testfixture can build with SQLITE_OMIT_WAL defined.
by dan
· 4 years, 10 months ago
c398c65
Revise the SQLITE_OPEN_NOFOLLOW so that it actually uses O_NOFOLLOW in the
by drh
· 6 years ago
9c9c709
Fix a recently introduced memory leak in the test code in test_vfs.c.
by dan
· 6 years ago
8342082
Fix a use-after-free problem in the test suite. No changes to production code.
by dan
· 6 years ago
0933aad
Add support for SQLITE_OPEN_NOFOLLOW.
by drh
· 6 years ago
90255b8
Add tests for the RBU module.
by dan
· 6 years ago
94c7ab5
In the test_vfs.c VFS, if a Tcl xWrite script returns "SQLITE_OMIT", silently omit the write() call.
by dan
· 6 years ago
89dec01
Add a few more test cases to walvfs.test.
by dan
· 7 years ago
76e4990
Add test cases to test file walvfs.test.
by dan
· 7 years ago
94e95ea
Copy some extra test infrastructure from the mutexfree-shmlock branch to trunk.
by dan
· 7 years ago
8d69a58
Improve the coverage of wal.c provided by the "coverage-wal" test permutation.
by dan
· 7 years ago
140a598
If an SQLITE_IOERR error is encountered as part of an atomic commit on an F2FS
by dan
· 7 years ago
7617e4a
Make sure the SQLITE_TCLAPI macro is always defined.
by mistachkin
· 9 years ago
52b1dbb
Allow the 'testfixture.exe' target to be compiled with the __stdcall calling convention.
by mistachkin
· 9 years ago
8f2ce91
Since the return value of sqlite3OsClose() is always ignored, we might as
by drh
· 9 years ago
8e18922
Fix harmless compiler warnings seen with MSVC 2015.
by mistachkin
· 10 years ago
363fc9e
Add a test for the change on this branch.
by dan
· 10 years ago
wal-blocking-lock
65545b5
Eliminate all use of sprintf(), strcpy() and strcat() from test logic because
by drh
· 11 years ago
7bb22ac
Silence some harmless uninitialized local variable warnings.
by mistachkin
· 11 years ago
62e603a
Add test cases and documentation for the nolock and immutable query parameters.
by drh
· 11 years ago
443dbcf
Comment and preprocessor macro cleanup.
by drh
· 12 years ago
789efdb
Drop any existing mapping of the database file when exiting the pager "error state", as it may at this point be too large for the database file. Do not invoke file-control MMAP_LIMIT if the database file handle does not support xFetch and xUnfetch (on the grounds that xUnfetch(0) calls to invalidate the mapping cannot be made).
by dan
· 12 years ago
d7a558a
Improve the code coverage of "permutations.test coverage-pager".
by dan
· 12 years ago
b88e24f
Enhancements to test scripts. No code changes.
by dan
· 12 years ago
428c218
When reusing pages as part of creating a new index, allocate the leaves from each free-list trunk page in ascending order, instead of trying to maximize localization for each individual allocation. This increases the chance that pages will be written to disk in ascending order by a large CREATE INDEX statement, improving overall performance.
by dan
· 13 years ago
5373b76
Ensure that there is always at least one aReadMark slot usable by an unprivileged reader while a checkpoint is running. Also, if one or more transactions are recovered from a log file, initialize one of the aReadMark slots to contain mxFrame as part of the recovery process.
by dan
· 13 years ago
83cc139
Fix harmless compiler warnings on x64 MSVC, mostly in test code, but also in
by drh
· 13 years ago
c8517f6
Move test logic for SQLITE_FCNTL_PRAGMA out of os_unix.c and into test_vfs.c.
by drh
· 13 years ago
file-control-pragma
92c700d
If the SQLITE_FCNTL_PRAGMA file-control returns anything other than
by drh
· 13 years ago
cb15f35
Change the name ZERO_DAMAGE to the more descriptive POWERSAFE_OVERWRITE.
by drh
· 14 years ago
statvfs
1eaaf93
Some fixes to the test suite so that it works with ZERO_DAMAGE set to true.
by drh
· 14 years ago
8bbaa89
Add SQLITE_IOCAP_ZERO_DAMAGE and enable it for both unix and windows. Use
by drh
· 14 years ago
6c3c1a0
Make sure to flag benign malloc failures in the Windows VFS as such. Expand use of the DO_OS_MALLOC_TEST to cover the VFS functions that can now return an out of memory error. Support an experimental --match option to the test suite that will run only those tests matching the specified pattern.
by mistachkin
· 14 years ago
winSyscall
262765a
Add tests to improve coverage of vdbesort.c.
by dan
· 14 years ago
e3f0316
Remove unused variables from test_vfs.c
by drh
· 14 years ago
328876c
Modify the implementation of the test code in test_vfs.c so that test VFS objects may be invoked recursively.
by dan
· 14 years ago
a12b6fa
Minor cleanups to the header comments on various test_*.c file, to make
by drh
· 14 years ago
8e98037
Test that it is now possible to use different VFSs for two databases attached to a single handle.
by dan
· 14 years ago
cd74b61
Add the start of the "uri-filenames" feature.
by dan
· 14 years ago
47e909b
Fix a bug in test code (test_vfs.c).
by dan
· 15 years ago
8c40800
If a database file with the WAL flag set is opened in exclusive-locking mode, use heap memory to store the wal-index instead of shared-memory.
by dan
· 15 years ago
b2eced5
Increase the maximum page size from 32k to 64k.
by drh
· 15 years ago
da9fe0c
Changes so that the xShmOpen VFS method is no longer required. Its job can be done by the first call to xShmMap. Rename xShmClose to xShmUnmap.
by dan
· 15 years ago
2667be5
Remove the unused xRename() method from the sqlite3_vfs object.
by drh
· 15 years ago
5257af7
Fix a bug in test_vfs.c causing an assert to fail. Changes to test code only.
by dan
· 15 years ago
89ccf44
Add pager test cases. Change a condition in pager.c to NEVER().
by dan
· 15 years ago
c8ce397
Add tests to pager1.test and pagerfault.test.
by dan
· 15 years ago
f9b4419
Further test cases for pager1.test and pagerfault.test.
by dan
· 15 years ago
346e426
Add test case for SQLITE_FULL errors to pagerfault.test. Remove a NEVER macro in pager.c that this hits.
by dan
· 15 years ago
0e986f5
Add test cases to pager1.test and pager2.test.
by dan
· 15 years ago
8ce49d6
Change the name of IOCAP_SAFE_DELETE to IOCAP_UNDELETABLE_WHEN_OPEN. Have the xDeviceCharacteristics() method of the win32 VFS return this flag.
by dan
· 15 years ago
146ed78
Add tests to pager1.test and pagerfault.test.
by dan
· 15 years ago
2a321c7
Experimental change: On systems where it is not possible to unlink a file while one or more processes has it open (i.e. not unix), avoid closing the journal file each time the database is unlocked and reopening it at the start of each transaction.
by dan
· 15 years ago
b0ac3e3
Fix a memory leak that can occur in os_unix.c if an IO error occurs within the xUnlock method.
by dan
· 15 years ago
6b017cc
Move the xShmMap method to in between xShmLock and xShmBarrier, since it seems
by drh
· 15 years ago
1880191
Remove xShmGet/Size/Release from the sqlite3_vfs structure. Change the name of xShmPage to xShmMap. Remove some code that is now unused from os_unix.c and some of the test VFS implementations.
by dan
· 15 years ago
5d65685
Add some fault-injection tests to improve coverage.
by dan
· 15 years ago
4280eb3
Fix some problems with handling IO errors on the experimental branch.
by dan
· 15 years ago
13a3cb8
Experimental change to the xShmXXX parts of the VFS interface.
by dan
· 15 years ago
ef4ee8f
Add extra coverage test cases for wal.c. No changes to production code.
by dan
· 15 years ago
d764c7d
If an attempt to sync the database file as part of a checkpoint fails, do not update the shared "nBackfill" variable. Otherwise, another process could wrap the log and overwrite content before it is synced into the database.
by dan
· 15 years ago
83f42d1
Fix a problem where an SQLITE_BUSY in the checkpoint code was being treated as an IO error (abandoning, instead of just limiting, the checkpoint).
by dan
· 15 years ago
d03f523
Fix another problem in test_vfs.c.
by dan
· 15 years ago
961ff45
Have test_vfs.c simulate IO errors in xShmLock.
by dan
· 15 years ago
1f55e28
Enhancements to test_vfs.c and walfault.test.
by dan
· 15 years ago
0235ab9
Changes to the way faults are injected into xShmXXX VFS calls.
by dan
· 15 years ago
73b64e4
Initial code for incremental checkpoint in WAL mode. This check-in compiles
by drh
· 15 years ago
286a288
Add a new xShmBarrier method to the VFS - a shared-memory fence operation.
by drh
· 15 years ago
5939f44
Mark the shared-memory in the WAL implementation as volatile.
by drh
· 15 years ago
7fd555a
Modify the VFS in test_vfs.c to match the refactoring of the xShmXXX methods.
by dan
· 15 years ago
d9e5c4f
Refactoring the VFS-SHM methods used by WAL. This version compiles and
by drh
· 15 years ago
65f2ac5
Test another IO error case in wal.c.
by dan
· 15 years ago
576bc32
Only pass -1 as the size parameter to xShmGet when the caller does not care what size mapping is returned. Only call xShmSize when the underlying allocation (not the mapping) should be resized.
by dan
· 15 years ago
d41a29a
Further coverage tests.
by dan
· 15 years ago
ff6dfc7
Add tests for some lock-contention cases.
by dan
· 15 years ago
8f6097c
Add tests for handling errors returned by xShm VFS methods.
by dan
· 15 years ago
c7991bd
Test the handling of errors returned by the xShmXXX() APIs.
by dan
· 15 years ago