diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-01-07 22:23:19 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-01-07 22:23:19 +0200 |
commit | b1f63ac08d7da89ac7e8af4df5ca835527fc5b24 (patch) | |
tree | b92dc911def1558a1681e036621098442fbcbe4f /extension/testext.c | |
parent | f70399532bd105c5f42ca040846aa537a8fa27bc (diff) | |
download | egawk-b1f63ac08d7da89ac7e8af4df5ca835527fc5b24.tar.gz egawk-b1f63ac08d7da89ac7e8af4df5ca835527fc5b24.tar.bz2 egawk-b1f63ac08d7da89ac7e8af4df5ca835527fc5b24.zip |
Load PROCINFO and ENVIRON if using extensions.
Diffstat (limited to 'extension/testext.c')
-rw-r--r-- | extension/testext.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extension/testext.c b/extension/testext.c index 7462265b..4a1e7032 100644 --- a/extension/testext.c +++ b/extension/testext.c @@ -3,7 +3,7 @@ */ /* - * Copyright (C) 2012, 2013, 2014 + * Copyright (C) 2012, 2013, 2014, 2015 * the Free Software Foundation, Inc. * * This file is part of GAWK, the GNU implementation of the @@ -302,11 +302,11 @@ var_test(int nargs, awk_value_t *result) goto out; } - /* look up PROCINFO - should fail */ + /* look up PROCINFO - should succeed fail */ if (sym_lookup("PROCINFO", AWK_ARRAY, & value)) - printf("var_test: sym_lookup of PROCINFO failed - got a value!\n"); + printf("var_test: sym_lookup of PROCINFO passed - got a value!\n"); else - printf("var_test: sym_lookup of PROCINFO passed - did not get a value\n"); + printf("var_test: sym_lookup of PROCINFO failed - did not get a value\n"); /* look up a reserved variable - should pass */ if (sym_lookup("ARGC", AWK_NUMBER, & value)) |