mirror of
				https://github.com/sqlite/sqlite.git
				synced 2025-11-03 16:53:36 +03:00 
			
		
		
		
	Added pragma support for controlling proxy file locking Added file control access to last errno and proxy locking Added support for TMPDIR environment variable Extended unit tests to cover new proxy locking pragmas and file control features (CVS 5934) FossilOrigin-Name: b9bc36d3d5e35821ef69c0881a84c0afed253c9e
		
			
				
	
	
		
			42 lines
		
	
	
		
			981 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			981 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# 2008 Jan 22
 | 
						|
#
 | 
						|
# The author disclaims copyright to this source code.  In place of
 | 
						|
# a legal notice, here is a blessing:
 | 
						|
#
 | 
						|
#    May you do good and not evil.
 | 
						|
#    May you find forgiveness for yourself and forgive others.
 | 
						|
#    May you share freely, never taking more than you give.
 | 
						|
#
 | 
						|
#***********************************************************************
 | 
						|
#
 | 
						|
# $Id: filectrl.test,v 1.2 2008/11/21 00:10:35 aswift Exp $
 | 
						|
 | 
						|
set testdir [file dirname $argv0]
 | 
						|
source $testdir/tester.tcl
 | 
						|
 | 
						|
 | 
						|
do_test filectrl-1.1 {
 | 
						|
  file_control_test db
 | 
						|
} {}
 | 
						|
do_test filectrl-1.2 {
 | 
						|
  db eval {CREATE TEMP TABLE x(y);}
 | 
						|
  file_control_test db
 | 
						|
} {}
 | 
						|
do_test filectrl-1.3 {
 | 
						|
  db close
 | 
						|
  sqlite3 db :memory:
 | 
						|
  file_control_test db
 | 
						|
} {}
 | 
						|
do_test filectrl-1.4 {
 | 
						|
  sqlite3 db test.db
 | 
						|
  file_control_lasterrno_test db
 | 
						|
} {}
 | 
						|
do_test filectrl-1.5 {
 | 
						|
  db close
 | 
						|
  sqlite3 db test_control_lockproxy.db
 | 
						|
  file_control_lockproxy_test db
 | 
						|
} {}
 | 
						|
db close
 | 
						|
file delete -force .test_control_lockproxy.db-conch test.proxy
 | 
						|
finish_test
 |