citrun

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

commit ca207e4b136d351cdbcfad342c6a3acf181b5763
parent 152f1d8fdd7866c6b159004ac551fc6f55171f50
Author: kyle <kyle@0x30.net>
Date:   Tue, 17 Jan 2017 21:55:12 -0700

t: catch preamble test up to recent code changes

Diffstat:
Mt/inst_preamble.t | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/t/inst_preamble.t b/t/inst_preamble.t @@ -44,8 +44,9 @@ my $preamble_good = <<EOF ; extern "" { #endif -static const unsigned int citrun_major = 0; -static const unsigned int citrun_minor = 0; +#define CITRUN_PATH_MAX 256 +static const unsigned int citrun_major = 0; +static const unsigned int citrun_minor = 0; struct citrun_header { char magic[4]; @@ -61,8 +62,8 @@ struct citrun_header { struct citrun_node { unsigned int size; - char comp_file_path[1024]; - char abs_file_path[1024]; + char comp_file_path[CITRUN_PATH_MAX]; + char abs_file_path[CITRUN_PATH_MAX]; unsigned long long *data; }; @@ -77,6 +78,7 @@ $constructor_decl #ifdef __cplusplus } #endif +#line 1 EOF # Read and sanitize special preamble file created by citrun_inst.