From 1a1522d3ff11874aec16a69bad43acb4c6ccfe22 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 3 Jan 2017 09:26:15 +0100 Subject: [PATCH] Fix RC unit test --- src/lib/rc/rc_tests/RCTest.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);