summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2007-10-23 16:05:24 (GMT)
committerdgp <dgp@users.sourceforge.net>2007-10-23 16:05:24 (GMT)
commit8b34cd579320036335e6cc2e53afe6c70c3090fa (patch)
treed613ca2accd7e7110cf5c5f6e968434fc62ef9c2
parent620c50bb12c97692f525d2b46aa33bd6f36835b8 (diff)
downloadtk-8b34cd579320036335e6cc2e53afe6c70c3090fa.zip
tk-8b34cd579320036335e6cc2e53afe6c70c3090fa.tar.gz
tk-8b34cd579320036335e6cc2e53afe6c70c3090fa.tar.bz2
* tests/cursor.test: Make tests robust against changes in Tcl's
rules for accepting integers in octal format.
-rw-r--r--ChangeLog5
-rw-r--r--tests/cursor.test4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 15c7522..5d3057e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-23 Don Porter <dgp@users.sourceforge.net>
+
+ * tests/cursor.test: Make tests robust against changes in Tcl's
+ rules for accepting integers in octal format.
+
2007-10-23 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* doc/font.n: Added section on the TIP#145 fonts.
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)]