diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2015-01-05 16:36:17 -0500 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2015-01-05 16:36:17 -0500 |
commit | cb5838c3c261f9a775fae45adfa70e1514e8bfe0 (patch) | |
tree | f34de2778a2b411c532764407fbd9abfea75b8c8 /test/getfile.ok | |
parent | a97507159ee06523c9dd6ec809199a0774976498 (diff) | |
download | gawk-cb5838c3c261f9a775fae45adfa70e1514e8bfe0.tar.gz |
Add test of get_file API.
Diffstat (limited to 'test/getfile.ok')
-rw-r--r-- | test/getfile.ok | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/getfile.ok b/test/getfile.ok new file mode 100644 index 00000000..92c915f2 --- /dev/null +++ b/test/getfile.ok @@ -0,0 +1,17 @@ +BEGIN +gawk: ./getfile.awk:9: warning: cannot open unrecognized file type `<<' for `echo hello; echo goodbye' +get_file: get_file(echo hello; echo goodbye, <<, -1) failed +expected error result 0 +get_file returned 1 +input_name echo hello; echo goodbye +1 +hello +BEGINFILE (getfile.awk) ERRNO () +get_file returned 1 +input_name getfile.awk +end BEGIN +ENDFILE (getfile.awk) ERRNO () +END +1 +goodbye +0 |