]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
gunit: Promote namespaces in test 001 and 013 to heap variables
authorTom Hromatka <tom.hromatka@oracle.com>
Tue, 1 Apr 2025 18:35:15 +0000 (18:35 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 2 Apr 2025 18:45:23 +0000 (12:45 -0600)
commit3cc0377a215a3cfa55c17948be72c0fa502ae6ec
treecc5cbfe3e11e3f0ef27fd5e444bef5e992809b4a
parent37c55b7b46c3ddca23898bbc0b5cbde04bd8c8cd
gunit: Promote namespaces in test 001 and 013 to heap variables

On one of my ubuntu22 machines, the NAMESPACE5[] character array was
outputing garbage for the last test.  Looks like gtest was running it in
another thread, and the pointer was garbage.  Promote the NAMESPACE*
variables to be heap variables so that they're safely available for all
threads.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Acked-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
tests/gunit/001-path.cpp
tests/gunit/013-cgroup_build_tasks_procs_path.cpp