]> OCCT Git - occt-copy.git/commit
0029247: Tests, CheckCommands.tcl - Tcl exception "expected integer but got 3dviewer...
authorapn <apn@opencascade.com>
Thu, 19 Oct 2017 09:08:05 +0000 (12:08 +0300)
committerkgv <kgv@opencascade.com>
Mon, 4 Dec 2017 18:28:30 +0000 (21:28 +0300)
commit5850c67925ddd1df42e1e337fc95279f6d00a469
tree9368ef6fd7193ba01918fc44e99af3e3f8129635
parent13bf5f494627be673132f808566a59cf0c2d408f
0029247: Tests, CheckCommands.tcl - Tcl exception "expected integer but got 3dviewer" in test cases on macOS

Test cases on macOS (using native tcl from /usr/lib) fail when $lst starts with numeral, because upvar guesses that its first parameter is level rather than otherVar.
The fix is to explicitly supply level to 1 (default value if uplevel is omitted) to avoid tcl exception "expected integer but got 3dviewer".
src/DrawResources/CheckCommands.tcl