citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 248c13b22f850960ac39e7ac339a084c2e07b15b
parent 0e249a135d018d1cc6d4d9b49bfbd29350e5657c
Author: Kyle Milz <kyle@0x30.net>
Date:   Wed, 31 Aug 2016 20:52:53 -0600

test: catch shm up with recent changes

Diffstat:
Mtest/shm.pm | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/test/shm.pm b/test/shm.pm @@ -5,7 +5,6 @@ use POSIX; # Triggers runtime to use alternate shm path. $ENV{CITRUN_TOOLS} = 1; -system("cd test && ../src/citrun-wrap jam"); sub new { my ($class) = @_; @@ -64,6 +63,17 @@ sub execs_for { return \@execs; } +sub print_tus { + my ($self) = @_; + + my $transl_units = $self->{translation_units}; + for (@$transl_units) { + my %tu = %$_; + + print "$tu{comp_file_name} $tu{size}\n"; + } +} + # # Read an exact amount of bytes. #