Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
test084.tcl
Package: mysql-3.23.35.tar.gz [view]
Upload User: tsgydb
Upload Date: 2007-04-14
Package Size: 10674k
Code Size: 1k
Category:
MySQL
Development Platform:
Visual C++
- # See the file LICENSE for redistribution information.
- #
- # Copyright (c) 2000
- # Sleepycat Software. All rights reserved.
- #
- # $Id: test084.tcl,v 11.6 2000/12/11 17:24:55 sue Exp $
- #
- # Test 84.
- # Basic sanity test (test001) with large (64K) pages.
- #
- proc test084 { method {nentries 10000} {tnum 84} {pagesize 65536} args} {
- source ./include.tcl
- set eindex [lsearch -exact $args "-env"]
- #
- # If we are using an env, then testfile should just be the db name.
- # Otherwise it is the test directory and the name.
- if { $eindex == -1 } {
- set testfile $testdir/test0$tnum-empty.db
- set env NULL
- } else {
- set testfile test0$tnum-empty.db
- incr eindex
- set env [lindex $args $eindex]
- }
- set pgindex [lsearch -exact $args "-pagesize"]
- if { $pgindex != -1 } {
- puts "Test084: skipping for specific pagesizes"
- return
- }
- cleanup $testdir $env
- set args "-pagesize $pagesize $args"
- eval {test001 $method $nentries 0 $tnum} $args
- set omethod [convert_method $method]
- set args [convert_args $method $args]
- # For good measure, create a second database that's empty
- # with the large page size. (There was a verifier bug that
- # choked on empty 64K pages. [#2408])
- set db [eval {berkdb_open -create -mode 0644} $args $omethod $testfile]
- error_check_good empty_db [is_valid_db $db] TRUE
- error_check_good empty_db_close [$db close] 0
- }