diff --git a/src/lib/rc/rc_tests/RCTest.cpp b/src/lib/rc/rc_tests/RCTest.cpp index 9569bc9a73..d8bf5e566c 100644 --- a/src/lib/rc/rc_tests/RCTest.cpp +++ b/src/lib/rc/rc_tests/RCTest.cpp @@ -119,6 +119,8 @@ bool RCTest::dsmTest(const char *filepath, unsigned expected_chancount, unsigned rate_limiter++; } + fclose(fp); + ut_test(ret == EOF); PX4_INFO("drop: %d", (int)last_drop); ut_test(last_drop == expected_dropcount);