forked from Archive/PX4-Autopilot
Fixed unit test usage of visibility macros
This commit is contained in:
parent
52bff67076
commit
e6a7dc7a3f
|
@ -1,6 +1,6 @@
|
|||
/****************************************************************************
|
||||
*
|
||||
* Copyright (C) 2012 PX4 Development Team. All rights reserved.
|
||||
* Copyright (c) 2012-2015 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
|
||||
|
@ -66,6 +66,7 @@
|
|||
#define _SYSTEMLIB_ERR_H
|
||||
|
||||
#include <stdarg.h>
|
||||
#include "visibility.h"
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
|
|
|
@ -23,8 +23,11 @@ include_directories(${CMAKE_SOURCE_DIR})
|
|||
include_directories(${PX_SRC})
|
||||
include_directories(${PX_SRC}/modules)
|
||||
include_directories(${PX_SRC}/lib)
|
||||
include_directories(${PX_SRC}/drivers)
|
||||
|
||||
add_definitions(-D__EXPORT=)
|
||||
add_definitions(-DERROR=-1)
|
||||
add_definitions(-DOK=0)
|
||||
|
||||
# check
|
||||
add_custom_target(unittests COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "gtest/gtest.h"
|
||||
|
||||
TEST(SBUS2Test, SBUS2) {
|
||||
char *filepath = "testdata/sbus2_r7008SB.txt";
|
||||
const char *filepath = "testdata/sbus2_r7008SB.txt";
|
||||
|
||||
FILE *fp;
|
||||
fp = fopen(filepath,"rt");
|
||||
|
|
Loading…
Reference in New Issue