Skip to content

Commit

Permalink
unit tests may fail...
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed Jan 5, 2017
1 parent 544662f commit af99794
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/TestStandardWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ int main()
Config::RenderWholeSong = true;
Config::useAudioNormalization = true;

bool failed=false;

try
{
TestSong<double> test(100);
Expand All @@ -103,6 +105,7 @@ int main()
{
cerr << "testing double failed" << endl;
cerr << e.what() << endl;
failed |= true;
}

try
Expand All @@ -116,6 +119,7 @@ int main()
{
cerr << "testing float failed" << endl;
cerr << e.what() << endl;
failed |= true;
}

try
Expand All @@ -129,6 +133,7 @@ int main()
{
cerr << "testing int32 failed" << endl;
cerr << e.what() << endl;
failed |= true;
}

try
Expand All @@ -142,6 +147,7 @@ int main()
{
cerr << "testing int16 failed" << endl;
cerr << e.what() << endl;
failed |= true;
}

try
Expand All @@ -155,7 +161,8 @@ int main()
{
cerr << "testing uint8 failed" << endl;
cerr << e.what() << endl;
failed |= true;
}

return 0;
return failed ? -1 : 0;
}

0 comments on commit af99794

Please sign in to comment.