mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-08 13:40:35 +08:00
Fix unit tests leaking resources
This was harmless but none the less is not good style and needs fixing.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/****************************************************************************
|
||||
*
|
||||
* Copyright (c) 2012, 2013 PX4 Development Team. All rights reserved.
|
||||
* Copyright (c) 2012, 2013, 2017 PX4 Development Team. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -173,6 +173,8 @@ int test_ppm_loopback(int argc, char *argv[])
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
close(servo_fd);
|
||||
|
||||
warnx("PPM LOOPBACK TEST PASSED SUCCESSFULLY!");
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user