diff options
Diffstat (limited to 'bdb/test/test022.tcl')
-rw-r--r-- | bdb/test/test022.tcl | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/bdb/test/test022.tcl b/bdb/test/test022.tcl index f9a4c96637e..d25d7ecdffe 100644 --- a/bdb/test/test022.tcl +++ b/bdb/test/test022.tcl @@ -1,11 +1,12 @@ # See the file LICENSE for redistribution information. # -# Copyright (c) 1999, 2000 +# Copyright (c) 1999-2002 # Sleepycat Software. All rights reserved. # -# $Id: test022.tcl,v 11.10 2000/08/25 14:21:55 sue Exp $ +# $Id: test022.tcl,v 11.14 2002/05/22 15:42:48 sue Exp $ # -# Test022: Test of DB->get_byteswapped +# TEST test022 +# TEST Test of DB->getbyteswapped(). proc test022 { method args } { source ./include.tcl @@ -14,6 +15,7 @@ proc test022 { method args } { puts "Test022 ($args) $omethod: DB->getbyteswapped()" + set txnenv 0 set eindex [lsearch -exact $args "-env"] # # If we are using an env, then testfile should just be the db name. @@ -27,6 +29,11 @@ proc test022 { method args } { set testfile2 "test022b.db" incr eindex set env [lindex $args $eindex] + set txnenv [is_txnenv $env] + if { $txnenv == 1 } { + append args " -auto_commit " + } + set testdir [get_home $env] } cleanup $testdir $env |