[lxc/lxc] cf5e95: tests: mount_injection: ensure cleanup on test fai...

0 views
Skip to first unread message

Stéphane Graber

unread,
Mar 15, 2026, 8:03:42 AM (2 days ago) Mar 15
to lxc-...@lists.linuxcontainers.org
Branch: refs/heads/main
Home: https://github.com/lxc/lxc
Commit: cf5e950eef1ea6e18e51d9d40b1e771ddb21d38a
https://github.com/lxc/lxc/commit/cf5e950eef1ea6e18e51d9d40b1e771ddb21d38a
Author: akash-hadke <akash...@bmwtechworks.in>
Date: 2026-03-15 (Sun, 15 Mar 2026)

Changed paths:
M src/tests/mount_injection.c

Log Message:
-----------
tests: mount_injection: ensure cleanup on test failure

The mount_injection test was exiting immediately on failure without
calling lxc_teardown_shmount(), leaving /tmp/mount_injection_test
mounted and causing "Device or resource busy" errors when trying to
remove it.

Store the test result and ensure lxc_teardown_shmount() is always
called before exiting, even when tests fail.

Signed-off-by: akash-hadke <akash...@bmwtechworks.in>


Commit: 16e46703fc0110185187f2a9b2aec1aef04145ac
https://github.com/lxc/lxc/commit/16e46703fc0110185187f2a9b2aec1aef04145ac
Author: Stéphane Graber <stgr...@stgraber.org>
Date: 2026-03-15 (Sun, 15 Mar 2026)

Changed paths:
M src/tests/mount_injection.c

Log Message:
-----------
Merge pull request #4639 from akash-hadke/patch-1

tests: mount_injection: ensure cleanup on test failure


Compare: https://github.com/lxc/lxc/compare/2899de61ec85...16e46703fc01

To unsubscribe from these emails, change your notification settings at https://github.com/lxc/lxc/settings/notifications
Reply all
Reply to author
Forward
0 new messages