]> git.ipfire.org Git - thirdparty/grub.git/commit
tests/lib/functional_test: Unregister commands on module unload
authorAlec Brown <alec.r.brown@oracle.com>
Thu, 21 Aug 2025 21:14:08 +0000 (21:14 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 18 Nov 2025 13:34:44 +0000 (14:34 +0100)
commit9df1e693e70c5a274b6d60dc76efe2694b89c2fc
treee8758562a6e003b132295b31fc07b7deb327cf19
parent05d3698b8b03eccc49e53491bbd75dba15f40917
tests/lib/functional_test: Unregister commands on module unload

When the functional_test module is loaded, both the functional_test and
all_functional_test commands are registered but only the all_functional_test
command is being unregistered since it was the last to set the cmd variable
that gets unregistered when the module is unloaded. To unregister both
commands, we need to create an additional grub_extcmd_t variable.

Signed-off-by: Alec Brown <alec.r.brown@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/tests/lib/functional_test.c