Artifact 77585283a341e25db8fff96eb7070db799fa645cc4b1620a8c8c252574a1a00f:
- File tools/valgrind_check_success — part of check-in [7fde86610c] at 2023-03-15 20:13:22 on branch core-8-branch — New script used in the "valgrind_each" target in Makefile.in (user: pooryorick, size: 482) [annotate] [blame] [check-ins using] [more...]
#! /usr/bin/env tclsh
proc main {sourcetype source} {
switch $sourcetype {
file {
set chan [open $source]
try {
set data [read $chan]
} finally {
close $chan
}
}
string {
set data $source
}
default {
error [list {wrong # args}]
}
}
set found [regexp -inline -all {blocks are\
(?:(?:(?:definitely|indirectly|possibly) lost)|still reachable)} $data]
if {[llength $found]} {
puts 0
} else {
puts 1
}
flush stdout
}
main {*}$argv