aboutsummaryrefslogtreecommitdiffstats
path: root/extension/testext.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-01-07 22:23:19 +0200
committerArnold D. Robbins <arnold@skeeve.com>2015-01-07 22:23:19 +0200
commitb1f63ac08d7da89ac7e8af4df5ca835527fc5b24 (patch)
treeb92dc911def1558a1681e036621098442fbcbe4f /extension/testext.c
parentf70399532bd105c5f42ca040846aa537a8fa27bc (diff)
downloadegawk-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.c8
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))