ni: fix use of multiple native global refs and according test
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 23 Feb 2013 14:42:47 +0000 (09:42 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 21 Mar 2013 18:32:53 +0000 (14:32 -0400)
commitf0f9a9cb88b87bf2045894ab2e8f8fc8d0d0c2d2
tree623e700a4e9a840e93a7b9dcfcff5cb468019505
parente4c0eccd3653f1cf66953fb425dfbc40e8709ee9
ni: fix use of multiple native global refs and according test

Fix a bug occuring when the number of global references from the
C code was higher than one.

The according test is moved from the native interface format to
the FFI. It also has a more complex test case.

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
clib/nit_main.c
tests/sav/test_ffi_c_global_ref.sav [moved from tests/sav/test_ni_global_ref.sav with 50% similarity]
tests/test_ffi_c_global_ref.nit [moved from tests/test_ni_global_ref.nit with 52% similarity]
tests/test_ni_global_ref.nit.c [deleted file]
tests/test_ni_global_ref.nit.h [deleted file]