summaryrefslogtreecommitdiffstats
path: root/tests/cursor.test
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2007-10-23 16:05:24 (GMT)
committerdgp@users.sourceforge.net <dgp>2007-10-23 16:05:24 (GMT)
commit67057ef68fc0064d27b61ce0e6b7e2099710fda6 (patch)
treed613ca2accd7e7110cf5c5f6e968434fc62ef9c2 /tests/cursor.test
parent80d0752f3fcd6ebbde4f911d8d9f8fc3cf1eb3db (diff)
downloadtk-67057ef68fc0064d27b61ce0e6b7e2099710fda6.zip
tk-67057ef68fc0064d27b61ce0e6b7e2099710fda6.tar.gz
tk-67057ef68fc0064d27b61ce0e6b7e2099710fda6.tar.bz2
* tests/cursor.test: Make tests robust against changes in Tcl's
rules for accepting integers in octal format.
Diffstat (limited to 'tests/cursor.test')
-rw-r--r--tests/cursor.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cursor.test b/tests/cursor.test
index d5dabcf..e92c08f 100644
--- a/tests/cursor.test
+++ b/tests/cursor.test
@@ -6,7 +6,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: cursor.test,v 1.16 2006/12/17 00:43:06 mdejong Exp $
+# RCS: @(#) $Id: cursor.test,v 1.17 2007/10/23 16:05:24 dgp Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -76,7 +76,7 @@ set wincur(data_octal) {
}
set wincur(data_binary) {}
foreach wincur(num) $wincur(data_octal) {
- append wincur(data_binary) [binary format c 0$wincur(num)]
+ append wincur(data_binary) [binary format c [scan $wincur(num) %o]]
}
set wincur(dir) [makeDirectory {dir with spaces}]
set wincur(file) [makeFile $wincur(data_binary) "test file.cur" $wincur(dir)]