summaryrefslogtreecommitdiffstats
path: root/tests/compExpr.test
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2007-10-15 21:27:47 (GMT)
committerdgp <dgp@noemail.net>2007-10-15 21:27:47 (GMT)
commitfa76a32e48857c488fafb6207259d2fc5a0b55ee (patch)
tree660da6ea51654bcc0e6047863d9213d28f2694a4 /tests/compExpr.test
parent15f0949b9d5235a15680088cedc25e367cb09ab8 (diff)
downloadtcl-fa76a32e48857c488fafb6207259d2fc5a0b55ee.zip
tcl-fa76a32e48857c488fafb6207259d2fc5a0b55ee.tar.gz
tcl-fa76a32e48857c488fafb6207259d2fc5a0b55ee.tar.bz2
* generic/tclIOCmd.c: Revise [open] so that it interprets leading
zero strings passed as the "permissions" argument as octal numbers, even if Tcl itself no longer parses integers in that way. * unix/tclUnixFCmd.c: Revise the "-permissions" [file attribute] so that it interprets leading zero strings as octal numbers, even if Tcl itself no longer parses integers in that way. * generic/tclCompExpr.c: Corrections to code that produces * generic/tclUtil.c: extended "bad octal" error messages. * tests/cmdAH.test: Test revisions so that tests pass whether or * tests/cmdIL.test: not Tcl parses leading zero strings as octal. * tests/compExpr-old.test: * tests/compExpr.test: * tests/compile.test: * tests/expr-old.test: * tests/expr.test: * tests/incr.test: * tests/io.test: * tests/lindex.test: * tests/link.test: * tests/mathop.test: * tests/parseExpr.test: * tests/set.test: * tests/string.test: * tests/stringComp.test: FossilOrigin-Name: 985f1d240af3c5f24259b36641dc385183af8a14
Diffstat (limited to 'tests/compExpr.test')
-rw-r--r--tests/compExpr.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/compExpr.test b/tests/compExpr.test
index f2075df..65c7d1c 100644
--- a/tests/compExpr.test
+++ b/tests/compExpr.test
@@ -8,7 +8,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: compExpr.test,v 1.14 2007/08/24 21:34:20 dgp Exp $
+# RCS: @(#) $Id: compExpr.test,v 1.15 2007/10/15 21:27:49 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -37,7 +37,7 @@ test compExpr-1.3 {TclCompileExpr procedure, error compiling expr} -body {
} -match glob -result {1 {* "*foo"}}
test compExpr-1.4 {TclCompileExpr procedure, expr has no operators} {
- set a {000123}
+ set a {0o00123}
expr {$a}
} 83
@@ -283,7 +283,7 @@ test compExpr-4.7 {CompileCondExpr procedure, simple "false" clause} {
} nope
test compExpr-4.8 {CompileCondExpr procedure, convert "false" clause to numeric} {
catch {unset a}
- set a 00123
+ set a 0o0123
expr {0? 42 : $a}
} 83
test compExpr-4.9 {CompileCondExpr procedure, error in "false" clause} {