Native SENT TPS input #5079

status quo

only:mre_f4
This commit is contained in:
Andrey 2023-03-01 15:21:35 -05:00
parent 976b3c0306
commit c3765829e0
1 changed files with 9 additions and 0 deletions

View File

@ -95,6 +95,8 @@ TEST(sent, testFordClosed) {
static sent_channel channel;
int lineCount = sentTest_feedWithFile(channel, "tests/sent/resources/ford-sent-closed.csv");
ASSERT_TRUE(lineCount > 100);
bool isError = channel.GetMsg(nullptr) != 0;
ASSERT_FALSE(isError);
#if SENT_STATISTIC_COUNTERS
sent_channel_stat &statistic = channel.statistic;
/* TODO: bad captured data or real problem? */
@ -106,6 +108,8 @@ TEST(sent, testFuelPressure) {
static sent_channel channel;
int lineCount = sentTest_feedWithFile(channel, "tests/sent/resources/SENT-fuel-pressure.csv");
ASSERT_TRUE(lineCount > 100);
bool isError = channel.GetMsg(nullptr) != 0;
ASSERT_FALSE(isError);
#if SENT_STATISTIC_COUNTERS
sent_channel_stat &statistic = channel.statistic;
ASSERT_TRUE(statistic.RestartCnt == 0);
@ -113,3 +117,8 @@ TEST(sent, testFuelPressure) {
#endif
}
TEST(sent, testNoMessages) {
static sent_channel channel;
bool isError = channel.GetMsg(nullptr) != 0;
ASSERT_FALSE(isError);
}