Report test errors correctly

This commit is contained in:
Peter Hill 2022-02-23 15:23:59 +00:00
parent 6b1ae2666f
commit f2f094da7b
No known key found for this signature in database
GPG Key ID: 54B71ECD1C23E787
12 changed files with 19 additions and 31 deletions

View File

@ -828,8 +828,7 @@ int main()
}
catch (NcException& e)
{
cout << "unknown error"<<endl;
e.what();
return e.errorCode();
cout << e.what() << endl;
return EXIT_FAILURE;
}
}

View File

@ -52,7 +52,7 @@ int main()
}
catch(NcException& e)
{
cout << "Error!\n";
return e.errorCode();
cout << e.what() << endl;
return EXIT_FAILURE;
}
}

View File

@ -326,8 +326,7 @@ int main()
}
catch (NcException& e)
{
cout <<"\n";
e.what();
return e.errorCode();
cout << e.what() << endl;
return EXIT_FAILURE;
}
}

View File

@ -70,8 +70,7 @@ int main()
}
catch (NcException& e)
{
cout << "unknown error"<<endl;
e.what();
cout << e.what() << endl;
return e.errorCode();
}
}

View File

@ -386,8 +386,7 @@ try
}
catch (NcException& e)
{
cout << "unknown error"<<endl;
e.what();
return e.errorCode();
cout << e.what() << endl;
return EXIT_FAILURE;
}
}

View File

@ -530,7 +530,6 @@ try
vlenPointer[0] = 1;
vlenPointer[1] = 31;
vlenPointer[2] = -20;
dummyData2.mem1[0];
dummyData2.mem1[0].p = vlenPointer;
dummyData2.mem1[0].len=3;
// vlenPointer = new short int[2];
@ -558,8 +557,7 @@ try
}
catch (NcException& e)
{
cout << "unknown error"<<endl;
cout << e.what();
exit(e.errorCode());
cout << e.what() << endl;
return EXIT_FAILURE;
}
}

View File

@ -53,8 +53,7 @@ try
}
catch (NcException& e)
{
cout << "unknown error"<<endl;
e.what();
cout << e.what() << endl;
return e.errorCode();
}
}

View File

@ -88,8 +88,7 @@ try
}
catch (NcException& e)
{
cout << "unknown error"<<endl;
e.what();
cout << e.what() << endl;
return e.errorCode();
}
}

View File

@ -72,8 +72,7 @@ try
}
catch (NcException& e)
{
cout << "unknown error"<<endl;
e.what();
cout << e.what() << endl;
return e.errorCode();
}
}

View File

@ -78,8 +78,7 @@ try
}
catch (NcException& e)
{
cout << "unknown error"<<endl;
e.what();
cout << e.what() << endl;
return e.errorCode();
}
}

View File

@ -811,8 +811,7 @@ int main()
}
catch (NcException& e)
{
cout << "unknown error"<<endl;
e.what();
return e.errorCode();
cout << e.what() << endl;
return EXIT_FAILURE;
}
}

View File

@ -186,8 +186,7 @@ int main()
}
catch (NcException& e)
{
cout << "unknown error"<<endl;
e.what();
return e.errorCode();
cout << e.what() << endl;
return EXIT_FAILURE;
}
}