Fix unit tests leaking resources

This was harmless but none the less is not good style and needs fixing.
This commit is contained in:
Lorenz Meier
2017-01-03 09:26:02 +01:00
committed by Beat Küng
parent 2880bb185f
commit 9f3fe2a802
6 changed files with 27 additions and 52 deletions
+3 -1
View File
@@ -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;