mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 08:13:33 +08:00
Fix testing mechanism.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* @file test_marcos.hpp
|
||||
*
|
||||
* Helps with cmake testing.
|
||||
*
|
||||
* @author James Goppert <james.goppert@gmail.com>
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
#define TEST(X) if(!(X)) { fprintf(stderr, "test failed on %s:%d\n", __FILE__, __LINE__); return -1;}
|
||||
Reference in New Issue
Block a user