summaryrefslogtreecommitdiff
path: root/test/tcl/rep087.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'test/tcl/rep087.tcl')
-rw-r--r--test/tcl/rep087.tcl14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/tcl/rep087.tcl b/test/tcl/rep087.tcl
index 653e29c8..b1a8254f 100644
--- a/test/tcl/rep087.tcl
+++ b/test/tcl/rep087.tcl
@@ -1,6 +1,6 @@
# See the file LICENSE for redistribution information.
#
-# Copyright (c) 2009, 2012 Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2009, 2015 Oracle and/or its affiliates. All rights reserved.
#
# TEST rep087
# TEST Abbreviated internal init with open file handles.
@@ -219,6 +219,18 @@ proc rep087_sub { method niter tnum with_nimdb largs } {
error_check_good access_ok [catch {$db get $a_key} ret] 0
}
+ #
+ # If we're a queue database, add in a check to make sure a client
+ # cannot do a db get -consume because that is an update operation.
+ #
+ set dbtype [$db get_type]
+ if { $dbtype == "queue" } {
+ puts "\tRep$tnum: Try to consume a queue entry on a client."
+ set ret [catch {$db get -consume} res]
+ error_check_bad client_consume $ret 0
+ error_check_good right_error \
+ [is_substr $res "permission denied"] 1
+ }
puts "\tRep$tnum: Clean up."
$db close
$envs(A) close