tests/custom-env: add const

When I make the test harness more type-safe, this would fail to build.
Add the missing const.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2026-05-19 17:55:52 +03:00
parent 6588352937
commit d2565d4c25

View file

@ -115,7 +115,7 @@ struct test_str {
char * const *argp;
};
static struct test_str str_tests[] = {
static const struct test_str str_tests[] = {
{
.exec_str = "ENV1=1 ENV2=owt two-arghs",
.envp = (char * const []) { "ENV1=1", "ENV2=owt", "ENV3=three", NULL },
@ -151,7 +151,7 @@ static struct test_str str_tests[] = {
TEST_P(env_parse_string, str_tests)
{
struct custom_env env;
struct test_str *test = data;
const struct test_str *test = data;
testlog("checking exec_str '%s'\n", test->exec_str);
custom_env_init_from_environ(&env);