diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-09-14 00:16:48 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-09-14 00:16:48 +0300 |
commit | fc9109734ddcf57c5f1faaedfadc432ec6841aa8 (patch) | |
tree | 476ccba6d5a68fea0da94f69783e6284db155371 /test | |
parent | 99290f5ca37cb905f7f1dab9be416b2e2057d243 (diff) | |
download | egawk-fc9109734ddcf57c5f1faaedfadc432ec6841aa8.tar.gz egawk-fc9109734ddcf57c5f1faaedfadc432ec6841aa8.tar.bz2 egawk-fc9109734ddcf57c5f1faaedfadc432ec6841aa8.zip |
Allow extensions read-only access to built-in vars.
Diffstat (limited to 'test')
-rw-r--r-- | test/ChangeLog | 4 | ||||
-rw-r--r-- | test/testext.ok | 11 |
2 files changed, 14 insertions, 1 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index ff992365..4bab4796 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,7 @@ +2012-09-14 Arnold D. Robbins <arnold@skeeve.com> + + * testext.ok: Updated. + 2012-09-11 Arnold D. Robbins <arnold@skeeve.com> * Makefile.am (shlib-tests): Check if DYNAMIC is enabled and diff --git a/test/testext.ok b/test/testext.ok index 132179c2..d291f721 100644 --- a/test/testext.ok +++ b/test/testext.ok @@ -10,7 +10,14 @@ dump_array_and_delete: marking element "3" for deletion dump_array_and_delete(pets) returned 1 dump_array_and_delete() did remove index "3"! -var_test: sym_lookup of ARGC passed - did not get a value +try_modify_environ: sym_lookup of ENVIRON passed +try_modify_environ: incoming size is 60 +try_modify_environ: set_array_element of ENVIRON failed +try_modify_environ: could not flatten array +try_del_environ() could not delete element - pass +try_del_environ() could not add an element - pass +var_test: sym_lookup of ARGC passed - got a value! +var_test: sym_update of ARGC failed - correctly var_test: sym_update("testvar") succeeded var_test() returned 1, test_var = 42 @@ -57,6 +64,8 @@ test_scalar(over) returned 1, the_scalar is over test_scalar(the) returned 1, the_scalar is the test_scalar(lazy) returned 1, the_scalar is lazy test_scalar(dog) returned 1, the_scalar is dog +test_scalar_reserved: sym_lookup of ARGC passed - got a value! +test_scalar_reserved: could not update new_value2 for ARGC - pass answer_num = 42 message_string = hello, world new_array["hello"] = "world" |