citrun

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

commit 242d0effe126a13cedcc948dce4e0a8dcdcedd75
parent a0b62ac008e8fa25fc011315f9c251cbb77dc13a
Author: Kyle Milz <kyle@0x30.net>
Date:   Fri,  5 Aug 2016 00:08:28 -0600

Test: shorten variable names

Diffstat:
MTest/Viewer.pm | 4++--
Mt/rt_counters_increase.t | 2+-
Mt/rt_reconnect.t | 2+-
Mt/rt_sanity.t | 2+-
Mt/rt_static.t | 2+-
5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Test/Viewer.pm b/Test/Viewer.pm @@ -32,13 +32,13 @@ sub accept { # Protocol defined in lib/runtime.c function send_static(). # ($self->{maj}, $self->{min}) = read_unpack($sock, 2, "C2"); - ($self->{num_tus}, $self->{lines_total}) = read_unpack($sock, 8, "L2"); + ($self->{ntus}, $self->{nlines}) = read_unpack($sock, 8, "L2"); @{ $self->{pids} } = read_unpack($sock, 12, "L3"); $self->{progname} = read_all($sock, read_unpack($sock, 2, "S")); $self->{cwd} = read_all($sock, read_unpack($sock, 2, "S")); my @tus; - for (1..$self->{num_tus}) { + for (1..$self->{ntus}) { my $file_name = read_all($sock, read_unpack($sock, 2, "S")); my ($num_lines, $inst_sites) = read_unpack($sock, 8, "L2"); diff --git a/t/rt_counters_increase.t b/t/rt_counters_increase.t @@ -42,7 +42,7 @@ $project->run(45); # Accept the runtime connection and check a few things. $viewer->accept(); -is( $viewer->{num_tus}, 1, "num tus check" ); +is( $viewer->{ntus}, 1, "num tus check" ); $viewer->cmp_static_data([ [ "source_0.c", 28, 18 ] ]); my $data = $viewer->get_dynamic_data(); diff --git a/t/rt_reconnect.t b/t/rt_reconnect.t @@ -22,7 +22,7 @@ sleep(1); my $viewer = Test::Viewer->new(); $viewer->accept(); -is( $viewer->{num_tus}, 1, "num tus check" ); +is( $viewer->{ntus}, 1, "num tus check" ); $viewer->cmp_static_data([ [ "source_0.c", 7, 2 ] ]); $project->kill(); diff --git a/t/rt_sanity.t b/t/rt_sanity.t @@ -59,7 +59,7 @@ $project->run(45); $viewer->accept(); is( $viewer->{maj}, 0, "protocol major" ); is( $viewer->{min}, 0, "protocol minor" ); -is( $viewer->{num_tus}, 3, "translation unit count" ); +is( $viewer->{ntus}, 3, "translation unit count" ); is( $viewer->{progname}, "program", "program name" ); is( $viewer->{cwd}, getcwd, "current working dir" ); diff --git a/t/rt_static.t b/t/rt_static.t @@ -30,7 +30,7 @@ cmp_ok( $viewer->{pids}->[1], ">", 1, "ppid check lower" ); cmp_ok( $viewer->{pids}->[1], "<", 100000, "ppid check upper" ); cmp_ok( $viewer->{pids}->[2], ">", 1, "pgrp check lower" ); cmp_ok( $viewer->{pids}->[2], "<", 100000, "pgrp check upper" ); -is( $viewer->{num_tus}, 1, "translation unit count" ); +is( $viewer->{ntus}, 1, "translation unit count" ); my @known_good = [ [ "source_0.c", 8, 2 ] ]; $viewer->cmp_static_data(@known_good);