root / host / tests / msg_test.cpp @ df020c69
History | View | Annotate | Download (1.33 KB)
| 1 |
//
|
|---|---|
| 2 |
// Copyright 2010-2011 Ettus Research LLC
|
| 3 |
//
|
| 4 |
// This program is free software: you can redistribute it and/or modify
|
| 5 |
// it under the terms of the GNU General Public License as published by
|
| 6 |
// the Free Software Foundation, either version 3 of the License, or
|
| 7 |
// (at your option) any later version.
|
| 8 |
//
|
| 9 |
// This program is distributed in the hope that it will be useful,
|
| 10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 12 |
// GNU General Public License for more details.
|
| 13 |
//
|
| 14 |
// You should have received a copy of the GNU General Public License
|
| 15 |
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
| 16 |
//
|
| 17 |
|
| 18 |
#include <boost/test/unit_test.hpp> |
| 19 |
#include <uhd/utils/msg.hpp> |
| 20 |
#include <iostream> |
| 21 |
|
| 22 |
BOOST_AUTO_TEST_CASE(test_messages){
|
| 23 |
std::cerr << "---begin print test ---" << std::endl;
|
| 24 |
UHD_MSG(status) << |
| 25 |
"This is a test print for a status message.\n"
|
| 26 |
"And this is the second line of the test print.\n"
|
| 27 |
; |
| 28 |
UHD_MSG(warning) << |
| 29 |
"This is a test print for a warning message.\n"
|
| 30 |
"And this is the second line of the test print.\n"
|
| 31 |
; |
| 32 |
UHD_MSG(error) << |
| 33 |
"This is a test print for an error message.\n"
|
| 34 |
"And this is the second line of the test print.\n"
|
| 35 |
; |
| 36 |
std::cerr << "---end print test ---" << std::endl;
|
| 37 |
} |