summaryrefslogtreecommitdiff
path: root/test/getfile.ok
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2015-01-05 16:36:17 -0500
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2015-01-05 16:36:17 -0500
commitcb5838c3c261f9a775fae45adfa70e1514e8bfe0 (patch)
treef34de2778a2b411c532764407fbd9abfea75b8c8 /test/getfile.ok
parenta97507159ee06523c9dd6ec809199a0774976498 (diff)
downloadgawk-cb5838c3c261f9a775fae45adfa70e1514e8bfe0.tar.gz
Add test of get_file API.
Diffstat (limited to 'test/getfile.ok')
-rw-r--r--test/getfile.ok17
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