citrun

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

commit 2850c6c743222cdcfbb84515ac3e198c05bef10f
parent bb389215e7b8bb42150b71f8c5a1024da4321aae
Author: Kyle Milz <kyle@0x30.net>
Date:   Mon, 29 Aug 2016 18:22:03 -0600

t: replace rt_size with a perl version

Diffstat:
Dt/rt_size.sh | 12------------
At/rt_size.t | 11+++++++++++
2 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/t/rt_size.sh b/t/rt_size.sh @@ -1,12 +0,0 @@ -# -# Test that the runtime shared file size is what we expect. -# -echo 1..2 -. test/project.sh - -./program 1 - -stat -f %z runtime/* > size -echo "16384" > size.good - -test_diff 2 "shared memory file size" size.good size diff --git a/t/rt_size.t b/t/rt_size.t @@ -0,0 +1,11 @@ +use strict; +use warnings; +use Test::More tests => 1; + +# +# Test that the runtime shared file size is what we expect. +# +$ENV{CITRUN_TOOLS} = 1; +system("test/program/program 1"); + +is((stat "procfile.shm")[7], 16384, "size of memory file");