diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-03-18 09:31:20 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-03-18 09:31:20 -0700 |
commit | 750ca3854099771112a2420784220d86f7e97af6 (patch) | |
tree | 9d9d119a179871d138c3b52e2a129c632299dc95 /testcases | |
parent | 9b9fdbda81790c06973d77c4b3c5b75be9dbebde (diff) | |
download | cppawk-750ca3854099771112a2420784220d86f7e97af6.tar.gz cppawk-750ca3854099771112a2420784220d86f7e97af6.tar.bz2 cppawk-750ca3854099771112a2420784220d86f7e97af6.zip |
Test -f option.
Bugfix: because the preprocessed version of the file is
in a temporary directory, #include "..." looks for files
in that directory. We must tell the preprocessor to look for
include files in the original directory. In the case when the
awk script comes from the command line, we already took care
of this by pointing the preprocessor to $(pwd).
Diffstat (limited to 'testcases')
-rw-r--r-- | testcases | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -121,3 +121,8 @@ BEGIN { } ./cppawk -v foo="'\"" 'BEGIN { print foo }' : '" +-- +23: +./cppawk -f testdir/program.cwk +: +73 |