svn commit: r293131 - head/lib/libnv/tests
Garrett Cooper
ngie at FreeBSD.org
Mon Jan 4 03:12:20 UTC 2016
Author: ngie
Date: Mon Jan 4 03:12:18 2016
New Revision: 293131
URL: https://svnweb.freebsd.org/changeset/base/293131
Log:
Convert another `string` variable to `string_arr` missed in r293130
Differential Revision: https://reviews.freebsd.org/D4769 (part of larger diff)
MFC after: 5 days
Reviewed by: oshogbo
Sponsored by: EMC / Isilon Storage Division
Modified:
head/lib/libnv/tests/nv_array_tests.cc
Modified: head/lib/libnv/tests/nv_array_tests.cc
==============================================================================
--- head/lib/libnv/tests/nv_array_tests.cc Mon Jan 4 03:02:44 2016 (r293130)
+++ head/lib/libnv/tests/nv_array_tests.cc Mon Jan 4 03:12:18 2016 (r293131)
@@ -1057,7 +1057,7 @@ ATF_TEST_CASE_BODY(nvlist_string_array__
void *packed;
unsigned int i;
const char * const *const_result;
- const char *string[8] = { "a", "b", "kot", "foo",
+ const char *string_arr[8] = { "a", "b", "kot", "foo",
"tests", "nice test", "", "abcdef" };
key = "nvl/string";
@@ -1066,7 +1066,7 @@ ATF_TEST_CASE_BODY(nvlist_string_array__
ATF_REQUIRE(nvlist_empty(nvl));
ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
- nvlist_add_string_array(nvl, key, string, 8);
+ nvlist_add_string_array(nvl, key, string_arr, 8);
ATF_REQUIRE_EQ(nvlist_error(nvl), 0);
ATF_REQUIRE(!nvlist_empty(nvl));
ATF_REQUIRE(nvlist_exists_string_array(nvl, key));
@@ -1082,7 +1082,7 @@ ATF_TEST_CASE_BODY(nvlist_string_array__
const_result = nvlist_get_string_array(unpacked, key, &count);
ATF_REQUIRE_EQ(count, 8);
for (i = 0; i < count; i++) {
- ATF_REQUIRE_EQ(strcmp(string[i], const_result[i]), 0);
+ ATF_REQUIRE_EQ(strcmp(string_arr[i], const_result[i]), 0);
}
nvlist_destroy(nvl);
More information about the svn-src-all
mailing list