Add Pawel Jewstafjew to AUTHORS
[libftdi] / test / basic.cpp
1 /**@file
2 @brief Test basic FTDI functionality
3
4 @author Thomas Jarosch
5 */
6
7 /***************************************************************************
8  *                                                                         *
9  *   This program is free software; you can redistribute it and/or modify  *
10  *   it under the terms of the GNU Lesser General Public License           *
11  *   version 2.1 as published by the Free Software Foundation;             *
12  *                                                                         *
13  ***************************************************************************/
14
15 #define BOOST_TEST_DYN_LINK
16 #define BOOST_TEST_MAIN
17 #include <boost/test/unit_test.hpp>
18
19 #include <ftdi.h>
20
21 BOOST_AUTO_TEST_SUITE(Basic)
22
23 BOOST_AUTO_TEST_CASE(SimpleInit)
24 {
25     ftdi_context ftdi;
26
27     int rtn_init = ftdi_init(&ftdi);
28     BOOST_REQUIRE_EQUAL(0, rtn_init);
29
30     ftdi_deinit(&ftdi);
31 }
32
33 BOOST_AUTO_TEST_SUITE_END()