citrun

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

commit 43772e10af736a3c47bafb00bbc31b336597c2d0
parent 9c08f71a472eb6e475a0f303d2a623ffb5773c10
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Sun, 12 Jun 2016 12:35:17 -0600

e2e: fix up some test names

Diffstat:
Me2e/libressl.t | 22+++++++++++-----------
Me2e/vim.t | 14+++++++-------
2 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/e2e/libressl.t b/e2e/libressl.t @@ -39,13 +39,13 @@ my $exp = Expect->spawn("$srcdir/apps/openssl/openssl"); $viewer->accept(); my $runtime_metadata = $viewer->get_metadata(); -is( $runtime_metadata->{num_tus}, 50, "vim translation unit count" ); -cmp_ok( $runtime_metadata->{pid}, ">", 1, "vim pid lower bound check" ); -cmp_ok( $runtime_metadata->{pid}, "<", 100000, "vim pid upper bound check" ); -cmp_ok( $runtime_metadata->{ppid}, ">", 1, "vim ppid lower bound check" ); -cmp_ok( $runtime_metadata->{ppid}, "<", 100000, "vim ppid upper bound check" ); -cmp_ok( $runtime_metadata->{pgrp}, ">", 1, "vim pgrp lower bound check" ); -cmp_ok( $runtime_metadata->{pgrp}, "<", 100000, "vim pgrp upper bound check" ); +is( $runtime_metadata->{num_tus}, 50, "libressl translation unit count" ); +cmp_ok( $runtime_metadata->{pid}, ">", 1, "libressl pid lower bound check" ); +cmp_ok( $runtime_metadata->{pid}, "<", 100000, "libressl pid upper bound check" ); +cmp_ok( $runtime_metadata->{ppid}, ">", 1, "libressl ppid lower bound check" ); +cmp_ok( $runtime_metadata->{ppid}, "<", 100000, "libressl ppid upper bound check" ); +cmp_ok( $runtime_metadata->{pgrp}, ">", 1, "libressl pgrp lower bound check" ); +cmp_ok( $runtime_metadata->{pgrp}, "<", 100000, "libressl pgrp upper bound check" ); my $tus = $runtime_metadata->{tus}; my @sorted_tus = sort { $a->{filename} cmp $b->{filename} } @$tus; @@ -110,12 +110,12 @@ my @known_good = ( # http://stackoverflow.com/questions/822563/how-can-i-iterate-over-multiple-lists-at-the-same-time-in-perl my $it = each_array( @known_good, @sorted_tus ); while ( my ($x, $y) = $it->() ) { - like( $y->{filename}, qr/.*$x->[0]/, "vim $x->[0]: filename check" ); - is ( $y->{lines}, $x->[1], "vim $x->[0]: total lines check" ); + like( $y->{filename}, qr/.*$x->[0]/, "libressl $x->[0]: filename check" ); + is ( $y->{lines}, $x->[1], "libressl $x->[0]: total lines check" ); # Check instrumented sites as a range - cmp_ok ( $y->{inst_sites}, ">", $x->[2] - 5, "vim $x->[0]: instrumented sites check lower" ); - cmp_ok ( $y->{inst_sites}, "<", $x->[2] + 5, "vim $x->[0]: instrumented sites check upper" ); + cmp_ok ( $y->{inst_sites}, ">", $x->[2] - 5, "libressl $x->[0]: instrumented sites check lower" ); + cmp_ok ( $y->{inst_sites}, "<", $x->[2] + 5, "libressl $x->[0]: instrumented sites check upper" ); } $exp->hard_close(); diff --git a/e2e/vim.t b/e2e/vim.t @@ -149,13 +149,13 @@ $exp = Expect->spawn("$srcdir/xxd/xxd"); $viewer->accept(); $runtime_metadata = $viewer->get_metadata(); -is( $runtime_metadata->{num_tus}, 1, "vim translation unit count" ); -cmp_ok( $runtime_metadata->{pid}, ">", 1, "vim pid lower bound check" ); -cmp_ok( $runtime_metadata->{pid}, "<", 100000, "vim pid upper bound check" ); -cmp_ok( $runtime_metadata->{ppid}, ">", 1, "vim ppid lower bound check" ); -cmp_ok( $runtime_metadata->{ppid}, "<", 100000, "vim ppid upper bound check" ); -cmp_ok( $runtime_metadata->{pgrp}, ">", 1, "vim pgrp lower bound check" ); -cmp_ok( $runtime_metadata->{pgrp}, "<", 100000, "vim pgrp upper bound check" ); +is( $runtime_metadata->{num_tus}, 1, "xxd translation unit count" ); +cmp_ok( $runtime_metadata->{pid}, ">", 1, "xxd pid lower bound check" ); +cmp_ok( $runtime_metadata->{pid}, "<", 100000, "xxd pid upper bound check" ); +cmp_ok( $runtime_metadata->{ppid}, ">", 1, "xxd ppid lower bound check" ); +cmp_ok( $runtime_metadata->{ppid}, "<", 100000, "xxd ppid upper bound check" ); +cmp_ok( $runtime_metadata->{pgrp}, ">", 1, "xxd pgrp lower bound check" ); +cmp_ok( $runtime_metadata->{pgrp}, "<", 100000, "xxd pgrp upper bound check" ); $tus = $runtime_metadata->{tus}; @sorted_tus = sort { $a->{filename} cmp $b->{filename} } @$tus;