File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,10 @@ func TestMain(m *testing.M) {
24
24
fmt .Println ("OpenSSL version:" , openssl .VersionText ())
25
25
fmt .Println ("FIPS enabled:" , openssl .FIPS ())
26
26
status := m .Run ()
27
- runtime .GC ()
27
+ for i := 0 ; i < 5 ; i ++ {
28
+ // Run GC a few times to avoid false positives in leak detection.
29
+ runtime .GC ()
30
+ }
28
31
openssl .CheckLeaks ()
29
32
os .Exit (status )
30
33
}
Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ rm -rf "openssl-$version"
48
48
mv " openssl-$tag " " openssl-$version "
49
49
50
50
cd " openssl-$version "
51
- ./config $config
51
+ # -d makes a debug build which helps with debugging memory issues and
52
+ # other problems. It's not necessary for normal use.
53
+ ./config -d $config
52
54
make -j$( nproc) $make
53
55
54
56
cp -H ./libcrypto.so " /usr/lib/libcrypto.so.${version} "
You can’t perform that action at this time.
0 commit comments