From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> Linux kernel commit 8bd76b3d3f3a ("gpio: sim: lock up configfs that an instantiated device depends on") uncovered an issue in C++ bindings tests where the GPIO simulator device is not disabled before removing its configfs entries. Add a call to gpiosim_dev_disable() to the gpiosim::chip's destructor. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> --- bindings/cxx/tests/gpiosim.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/cxx/tests/gpiosim.cpp b/bindings/cxx/tests/gpiosim.cpp index 4bda5a2..cdecd8d 100644 --- a/bindings/cxx/tests/gpiosim.cpp +++ b/bindings/cxx/tests/gpiosim.cpp @@ -115,7 +115,7 @@ chip::chip(chip&& other) chip::~chip() { - + ::gpiosim_dev_disable(this->_m_priv->dev.get()); } chip& chip::operator=(chip&& other) -- 2.45.2