Fixed unit test usage of visibility macros

This commit is contained in:
Lorenz Meier 2015-02-02 21:03:19 +01:00
parent 52bff67076
commit e6a7dc7a3f
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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)

View File

@ -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");