diff options
author | Zoltan Varga <vargaz@gmail.com> | 2004-09-07 01:31:11 +0400 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2004-09-07 01:31:11 +0400 |
commit | 503e0ce2a63e0d548b330b7426b844a5534d8903 (patch) | |
tree | d8926ede2214d2ee22ab030435c2a43b068453e1 | |
parent | 7255e0c21d43e611bdf10af4bc8a7e8ba41c543f (diff) |
2004-09-07 Zoltan Varga <vargaz@freemail.hu>
* libtest.c (mono_test_marshal_string_array): Add test for null
terminating string arrays.
svn path=/trunk/mono/; revision=33452
-rw-r--r-- | mono/tests/ChangeLog | 5 | ||||
-rw-r--r-- | mono/tests/libtest.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/mono/tests/ChangeLog b/mono/tests/ChangeLog index c8f7f54bab8..75f624f0783 100644 --- a/mono/tests/ChangeLog +++ b/mono/tests/ChangeLog @@ -1,3 +1,8 @@ +2004-09-07 Zoltan Varga <vargaz@freemail.hu> + + * libtest.c (mono_test_marshal_string_array): Add test for null + terminating string arrays. + 2004-09-06 Zoltan Varga <vargaz@freemail.hu> * libtest.c: Mark delegates with __stdcall on windows. diff --git a/mono/tests/libtest.c b/mono/tests/libtest.c index ea6118d4317..66ea7573d3a 100644 --- a/mono/tests/libtest.c +++ b/mono/tests/libtest.c @@ -699,6 +699,9 @@ mono_test_marshal_string_array (char **array) if (strcmp (array [1], "DEF")) return 2; + if (array [2] != NULL) + return 3; + return 0; } |