Checklist
Describe the bug
We mistakenly pasted the implementation file in to the test file...
Code snips
|
void UtTest_Setup(void) |
|
{ |
|
ADD_TEST(Test_Nominal); |
|
ADD_TEST(Test_Non_Reducible); |
|
ADD_TEST(Test_Reducible_1); |
|
ADD_TEST(Test_Reducible_2); |
|
ADD_TEST(Test_Rollover); |
|
ADD_TEST(Test_Get_Timebase); |
|
} |
|
/*********************************************************************** |
|
* Copyright (c) 2017, United States government as represented by the |
|
* administrator of the National Aeronautics and Space Administration. |
|
* All rights reserved. This software was created at NASA Glenn |
|
* Research Center pursuant to government contracts. |
|
* |
|
* \file linux_sysmon.c |
|
* |
|
***********************************************************************/ |
|
|
|
/* |
|
* NOTE: This relies on the Linux Kernel sched stats via the /proc filesystem. |
|
* Documented here: https://docs.kernel.org/scheduler/sched-stats.html |
|
*/ |
|
|
|
/************************************************************************ |
|
* Includes |
|
************************************************************************/ |
|
|
|
#include <fcntl.h> |
|
#include <ctype.h> |
|
#include <unistd.h> |
|
#include <errno.h> |
|
#include <string.h> |
|
#include <pthread.h> |
|
#include <stdint.h> |
|
#include <poll.h> |
|
|
|
#include "cfe_psp.h" |
|
#include "cfe_psp_module.h" |
|
#include "osapi-clock.h" |
|
|
|
#include "iodriver_impl.h" |
|
#include "iodriver_analog_io.h" |
|
|
|
/******************************************************************** |
|
* Local Defines |
|
********************************************************************/ |
|
|
|
#define LINUX_SYSMON_AGGREGATE_SUBSYS 0 |
|
#define LINUX_SYSMON_CPULOAD_SUBSYS 1 |
|
#define LINUX_SYSMON_AGGR_CPULOAD_SUBCH 0 |
Expected behavior
Remove.
Reporter Info
Avi Weiss @thnkslprpt
Checklist
Describe the bug
We mistakenly pasted the implementation file in to the test file...
Code snips
PSP/unit-test-coverage/modules/linux_sysmon/coveragetest-linux_sysmon.c
Lines 241 to 291 in ae0c0a7
Expected behavior
Remove.
Reporter Info
Avi Weiss @thnkslprpt