mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 01:11:10 +03:00
gtest: Added Google Test
Added Google Test for unit testing. Currently NOT required by UPM CMake. * Added a test fixture for the utilities library. * Fixed bug in delay methods provided by utilities library. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -52,8 +52,9 @@ static struct aqi {
|
||||
|
||||
void upm_delay(unsigned int time)
|
||||
{
|
||||
if (time <= 0)
|
||||
time = 1;
|
||||
/* Return if time == 0 */
|
||||
if (!time)
|
||||
return;
|
||||
|
||||
#if defined(UPM_PLATFORM_LINUX)
|
||||
|
||||
@ -92,8 +93,9 @@ void upm_delay(unsigned int time)
|
||||
|
||||
void upm_delay_ms(unsigned int time)
|
||||
{
|
||||
if (time <= 0)
|
||||
time = 1;
|
||||
/* Return if time == 0 */
|
||||
if (!time)
|
||||
return;
|
||||
|
||||
#if defined(UPM_PLATFORM_LINUX)
|
||||
|
||||
@ -128,8 +130,9 @@ void upm_delay_ms(unsigned int time)
|
||||
|
||||
void upm_delay_us(unsigned int time)
|
||||
{
|
||||
if (time <= 0)
|
||||
time = 1;
|
||||
/* Return if time == 0 */
|
||||
if (!time)
|
||||
return;
|
||||
|
||||
#if defined(UPM_PLATFORM_LINUX)
|
||||
|
||||
|
Reference in New Issue
Block a user