Skip to content

Commit

Permalink
Corrected some failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe0606 committed Aug 21, 2023
1 parent c5b23d5 commit f84f3ab
Show file tree
Hide file tree
Showing 16 changed files with 1,309 additions and 45 deletions.
4 changes: 2 additions & 2 deletions Source/TransformFunctions/arm_mfcc_q15.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ arm_status arm_mfcc_q15(
// q15
arm_absmax_q15(pSrc,S->fftLen,&m,&index);

if (m !=0)
if ((m != 0) && (m != 0x7FFF))
{
q15_t quotient;
int16_t shift;
Expand Down Expand Up @@ -162,7 +162,7 @@ arm_status arm_mfcc_q15(

}

if (m != 0)
if ((m != 0) && (m != 0x7FFF))
{
arm_scale_q31(pTmp,m<<16,0,pTmp,S->nbMelFilters);
}
Expand Down
4 changes: 2 additions & 2 deletions Source/TransformFunctions/arm_mfcc_q31.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ arm_status arm_mfcc_q31(
// q31
arm_absmax_q31(pSrc,S->fftLen,&m,&index);

if (m !=0)
if ((m != 0) && (m != 0x7FFFFFFF))
{
q31_t quotient;
int16_t shift;
Expand Down Expand Up @@ -165,7 +165,7 @@ arm_status arm_mfcc_q31(

}

if (m != 0)
if ((m != 0) && (m != 0x7FFFFFFF))
{
arm_scale_q31(pTmp,m,0,pTmp,S->nbMelFilters);
}
Expand Down
8 changes: 4 additions & 4 deletions Testing/FrameworkSource/IORunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ fast models.
{
Testing::TestStatus finalResult = Testing::kTestPassed;
int nbTests = s->getNbTests();
int failedTests=0;
//int failedTests=0;
Testing::errorID_t error=0;
unsigned long line = 0;
char details[200];
Expand Down Expand Up @@ -378,7 +378,7 @@ fast models.

if (result == Testing::kTestFailed)
{
failedTests ++;
//failedTests ++;
finalResult = Testing::kTestFailed;
}
}
Expand All @@ -392,7 +392,7 @@ fast models.
Testing::TestStatus IORunner::run(Group *g)
{
int nbTests = g->getNbContainer();
int failedTests=0;
//int failedTests=0;


// Read Node identification
Expand All @@ -411,7 +411,7 @@ fast models.

if (result == Testing::kTestFailed)
{
failedTests ++;
//failedTests ++;
finalResult = Testing::kTestFailed;
}
}
Expand Down
Loading

0 comments on commit f84f3ab

Please sign in to comment.