test/namemap_internal_test.c: use "cookie" instead of "foo"...
authorRichard Levitte <levitte@openssl.org>
Tue, 10 Dec 2019 19:38:09 +0000 (20:38 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 13 Dec 2019 09:03:57 +0000 (10:03 +0100)
commit97ba39547d4c79b60131475a1512cc7d7e8952b2
treeb8b755d7dacf7bbb294485a0f0d4275193137f53
parentdd0139f416257ec5632414ed3ad8c61d07ba07ec
test/namemap_internal_test.c: use "cookie" instead of "foo"...

... in test_namemap()

Because tests may sometimes run in random order (subject of the
environment variable OPENSSL_TEST_RAND_ORDER being defined), and we're
dealing with the global namemap, each test must use names that are
globally unique for that test.  Unfortunately, we used "foo" in two of
them, which might lead to surprising results.

Fixes #10401

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10601)
test/namemap_internal_test.c