Skip to content

Commit 4061b6d

Browse files
Fix missing escapes on wave scripts
The wave script was being sourced at point when the ScriptFile was being created, instead of when the ScriptFile is eventuallly sourced. Leading to regressed behaviour vs previous release.
1 parent 6db32db commit 4061b6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OsvvmScriptsSimulateSupport.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ proc ScriptCreateIfWaveDoExists {ScriptToRun LibraryUnit} {
9090
variable ScriptFile
9191

9292
if {[file exists $ScriptToRun]} {
93-
puts $ScriptFile " if {[catch {source $ScriptToRun} errorMsg]} {"
93+
puts $ScriptFile " if {\[catch {source $ScriptToRun} errorMsg\]} {"
9494
puts $ScriptFile " CallbackOnError_WaveDo \$errorMsg \$::errorInfo [file dirname $ScriptToRun] $LibraryUnit"
9595
puts $ScriptFile " }"
9696
}

0 commit comments

Comments
 (0)