diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-29 22:50:17 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-29 22:50:17 +0300 |
commit | abcfb997622f9b65c9f142b178648bbda83acdf1 (patch) | |
tree | 24d87a464a1ea5f52ec395fed5e68b89bf03ce2d /extension/testext.c | |
parent | 9701514d4ad1152da564ebf6690c514becd4339a (diff) | |
parent | 1086474bc51fc31e15d72df27b529b1015cd33aa (diff) | |
download | egawk-abcfb997622f9b65c9f142b178648bbda83acdf1.tar.gz egawk-abcfb997622f9b65c9f142b178648bbda83acdf1.tar.bz2 egawk-abcfb997622f9b65c9f142b178648bbda83acdf1.zip |
Merge branch 'master' into comment
Diffstat (limited to 'extension/testext.c')
-rw-r--r-- | extension/testext.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extension/testext.c b/extension/testext.c index 2dda339f..7462265b 100644 --- a/extension/testext.c +++ b/extension/testext.c @@ -302,6 +302,12 @@ var_test(int nargs, awk_value_t *result) goto out; } + /* look up PROCINFO - should fail */ + if (sym_lookup("PROCINFO", AWK_ARRAY, & value)) + printf("var_test: sym_lookup of PROCINFO failed - got a value!\n"); + else + printf("var_test: sym_lookup of PROCINFO passed - did not get a value\n"); + /* look up a reserved variable - should pass */ if (sym_lookup("ARGC", AWK_NUMBER, & value)) printf("var_test: sym_lookup of ARGC passed - got a value!\n"); |