Skip to content

Commit e53eaf6

Browse files
committed
Minor updates
1 parent b41eadb commit e53eaf6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

OsvvmScriptsCore.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ proc StartTranscript {} {
735735
set TempTranscriptName [file join ${::osvvm::CurrentSimulationDirectory} ${::osvvm::OsvvmTempLogFile}]
736736

737737
# if {[llength [info procs vendor_StartTranscript]] > 0} {}
738-
if {![catch {info body vendor_StartTranscript} err]} {
738+
if {[info procs vendor_StartTranscript] ne ""} {
739739
vendor_StartTranscript $TempTranscriptName
740740
} else {
741741
DefaultVendor_StartTranscript $TempTranscriptName
@@ -772,7 +772,7 @@ proc StopTranscript {{FileBaseName ""}} {
772772
set TempTranscriptName [file join ${::osvvm::CurrentSimulationDirectory} ${::osvvm::OsvvmTempLogFile}]
773773
set TranscriptFileName [file join ${LogDirectory} ${FileBaseName}.log]
774774
# if {[llength [info procs vendor_StopTranscript]] > 0} {}
775-
if {![catch {info body vendor_StopTranscript} err]} {
775+
if {[info procs vendor_StopTranscript] ne ""} {
776776
vendor_StopTranscript $TempTranscriptName
777777
# file rename -force ${TempTranscriptName} ${TranscriptFileName}
778778
file copy -force ${TempTranscriptName} ${TranscriptFileName}

tee.tcl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ proc tee::initialize {fd handle mode} {
5050
}
5151

5252
proc tee::finalize {fd handle} {
53-
close $fd
53+
if {$fd in [chan names]} {
54+
close $fd
55+
}
5456
}
5557

5658
proc tee::write {fd handle buffer} {

0 commit comments

Comments
 (0)