From 334b03478bc1bb63f670dec8a75b7b5ad71eca98 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 21 Oct 2020 14:36:51 -0700 Subject: [PATCH] test-runner: enable valgrind track origins This gives a more exact location to where a memory problem is happening. It also uses more RAM so the VM was upgraded to 256MB from 192MB. --- tools/test-runner | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/test-runner b/tools/test-runner index 8c06816c..10db4c78 100755 --- a/tools/test-runner +++ b/tools/test-runner @@ -557,8 +557,8 @@ class TestContext: iwd_radios = ','.join([r.name for r in self.radios if r.use == 'iwd']) if self.args.valgrind: - args.extend(['valgrind', '--leak-check=full', '--log-file=%s' % \ - '/tmp/valgrind.log']) + args.extend(['valgrind', '--leak-check=full', '--track-origins=yes', + '--log-file=/tmp/valgrind.log']) args.extend(['iwd', '-p', iwd_radios]) @@ -1265,7 +1265,7 @@ class Main: qemu_binary, '-machine', 'type=q35,accel=kvm:tcg', '-nodefaults', '-no-user-config', '-monitor', 'none', - '-display', 'none', '-m', '192M', '-nographic', '-vga', + '-display', 'none', '-m', '256M', '-nographic', '-vga', 'none', '-no-acpi', '-no-hpet', '-no-reboot', '-fsdev', 'local,id=fsdev-root,path=/,readonly,security_model=none,multidevs=remap',