File tree 3 files changed +25
-4
lines changed
3 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 3
3
Memcheck:Cond
4
4
fun:lzf_compress
5
5
}
6
+
7
+ {
8
+ <lzf_unitialized_hash_table>
9
+ Memcheck:Value4
10
+ fun:lzf_compress
11
+ }
12
+
13
+ {
14
+ <lzf_unitialized_hash_table>
15
+ Memcheck:Value8
16
+ fun:lzf_compress
17
+ }
Original file line number Diff line number Diff line change 1
1
set ::global_overrides {}
2
2
set ::tags {}
3
+ set ::valgrind_errors {}
3
4
4
5
proc error_and_quit {config_file error} {
5
6
puts " !!COULD NOT START REDIS-SERVER\n "
@@ -16,11 +17,12 @@ proc check_valgrind_errors stderr {
16
17
close $fd
17
18
18
19
if {![regexp -- {ERROR SUMMARY: 0 errors} $buf ] ||
19
- ![regexp -- {definitely lost: 0 bytes} $buf ]} {
20
+ (![regexp -- {definitely lost: 0 bytes} $buf ] &&
21
+ ![regexp -- {no leaks are possible} $buf ])} {
20
22
puts " *** VALGRIND ERRORS ***"
21
23
puts $buf
22
- puts " --- press enter to continue ---"
23
- gets stdin
24
+ puts " -------------------- ---"
25
+ append ::valgrind_errors " $buf \n\n "
24
26
}
25
27
}
26
28
Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ proc execute_everything {} {
138
138
139
139
proc main {} {
140
140
cleanup
141
+ set exit_with_error 0
141
142
142
143
if {[string length $::file ] > 0} {
143
144
foreach {file } [split $::file ,] {
@@ -169,8 +170,14 @@ proc main {} {
169
170
}
170
171
171
172
puts " "
172
- exit 1
173
+ incr exit_with_error
174
+ }
175
+
176
+ if {[string length $::valgrind_errors ]} {
177
+ puts " Valgrind errors:\n $::valgrind_errors "
178
+ incr exit_with_error
173
179
}
180
+ if {$exit_with_error } {exit 1}
174
181
}
175
182
176
183
# parse arguments
You can’t perform that action at this time.
0 commit comments