diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2019-12-11 11:49:35 -0800 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2019-12-16 15:26:29 -0500 |
commit | bace2f417e0de31ec8bf60590bc823369ecb2851 (patch) | |
tree | 8952b705965cc8a90f47370b40ef982306490cd7 | |
parent | b5a6bf5c3ca11452580dd86f9c756e91c246cee1 (diff) |
tests: Look for template files in srcdir
-rwxr-xr-x | tests/wrapper-compiler-errors | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/wrapper-compiler-errors b/tests/wrapper-compiler-errors index 3dc2a1a..029787a 100755 --- a/tests/wrapper-compiler-errors +++ b/tests/wrapper-compiler-errors @@ -68,9 +68,9 @@ while [[ -f `printf "${temp_dir}/${input_filename}_%02d.c" ${num}` ]]; do echo " - Outputting to error files ${expected_error_filename} and ${actual_error_filename}." # Wrap the section’s code with a prefix and suffix. - (cat "${template_name}.head.c" + (cat "${srcdir}/${template_name}.head.c" cat "${section_filename}" - cat "${template_name}.tail.c" + cat "${srcdir}/${template_name}.tail.c" ) > $section_filename.tmp mv -f $section_filename.tmp $section_filename |