From 93de2301b262afa86af6c48076c1d6c89888eb0f Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Wed, 7 Sep 2011 10:56:01 +0200 Subject: [PATCH] Cosmetic changes and add Uwe to authors --- test/baudrate.cpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/test/baudrate.cpp b/test/baudrate.cpp index 8bd04eb..d541ba3 100644 --- a/test/baudrate.cpp +++ b/test/baudrate.cpp @@ -1,7 +1,7 @@ /**@file @brief Test baudrate calculator code -@author Thomas Jarosch +@author Thomas Jarosch and Uwe Bonnes */ /*************************************************************************** @@ -106,6 +106,7 @@ static void test_baudrates(ftdi_context *ftdi, const map &baud break; default:; } + // Aid debugging since this test is a generic function BOOST_CHECK_MESSAGE(res->actual_baudrate == calc_baudrate && res->divisor == divisor && res->fractional_bits == fractional_bits && res->clock == clock, @@ -199,6 +200,7 @@ BOOST_AUTO_TEST_CASE(TypeBMFixedBaudrates) baudrates[(3000000*16/(2*16+ 3))+1] = calc_result(round(3000000/2.125), 2, 3, 48); baudrates[ 3000000*16/(2*16+ 1) ] = calc_result(round(3000000/2.125), 2, 3, 48); baudrates[(3000000*16/(2*16+ 1))+1] = calc_result(round(3000000/2.000), 2, 0, 48); + BOOST_FOREACH(const enum ftdi_chip_type &test_chip_type, test_types) { ftdi->type = test_chip_type; -- 1.7.1