Archived issue #0029247

Tests, CheckCommands.tcl - Tcl exception "expected integer but got 3dviewer" in test cases on macOS

Open CASCADEOCCT:Testsclosed4 public notes

Search issues

Description

Test cases on macOS(using native tcl from /usr/lib) failed when $lst starts with numeral, because upvar guesses that its first parameter is level rather than otherVar.

Public activity

4 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Thu Oct 19 12:08:05 2017 +0300

    0029247: Tcl exception "expected integer but got 3dviewer" in test cases on macOS
    
    Test cases on macOS(using native tcl from /usr/lib) failed 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".
02Commenter 2
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
03Author
Dear ski, could you please review CR29247.
04Commenter 2
Branch [archived branch] has been deleted by Commenter 3.

[revision removed]

Related records