mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Initial commit
This commit is contained in:
Vendored
+33
@@ -0,0 +1,33 @@
|
||||
/**@file
|
||||
@brief Test basic FTDI functionality
|
||||
|
||||
@author Thomas Jarosch
|
||||
*/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU Lesser General Public License *
|
||||
* version 2.1 as published by the Free Software Foundation; *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#define BOOST_TEST_DYN_LINK
|
||||
#define BOOST_TEST_MAIN
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
#include <ftdi.h>
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(Basic)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(SimpleInit)
|
||||
{
|
||||
ftdi_context ftdi;
|
||||
|
||||
int rtn_init = ftdi_init(&ftdi);
|
||||
BOOST_REQUIRE_EQUAL(0, rtn_init);
|
||||
|
||||
ftdi_deinit(&ftdi);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
Reference in New Issue
Block a user