mirror of
https://github.com/Unidata/netcdf-cxx4.git
synced 2025-03-07 19:16:42 +08:00
Report test errors correctly
This commit is contained in:
parent
6b1ae2666f
commit
f2f094da7b
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ int main()
|
||||
}
|
||||
catch(NcException& e)
|
||||
{
|
||||
cout << "Error!\n";
|
||||
return e.errorCode();
|
||||
cout << e.what() << endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
|
@ -326,8 +326,7 @@ int main()
|
||||
}
|
||||
catch (NcException& e)
|
||||
{
|
||||
cout <<"\n";
|
||||
e.what();
|
||||
return e.errorCode();
|
||||
cout << e.what() << endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
|
@ -70,8 +70,7 @@ int main()
|
||||
}
|
||||
catch (NcException& e)
|
||||
{
|
||||
cout << "unknown error"<<endl;
|
||||
e.what();
|
||||
cout << e.what() << endl;
|
||||
return e.errorCode();
|
||||
}
|
||||
}
|
||||
|
@ -386,8 +386,7 @@ try
|
||||
}
|
||||
catch (NcException& e)
|
||||
{
|
||||
cout << "unknown error"<<endl;
|
||||
e.what();
|
||||
return e.errorCode();
|
||||
cout << e.what() << endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -53,8 +53,7 @@ try
|
||||
}
|
||||
catch (NcException& e)
|
||||
{
|
||||
cout << "unknown error"<<endl;
|
||||
e.what();
|
||||
cout << e.what() << endl;
|
||||
return e.errorCode();
|
||||
}
|
||||
}
|
||||
|
@ -88,8 +88,7 @@ try
|
||||
}
|
||||
catch (NcException& e)
|
||||
{
|
||||
cout << "unknown error"<<endl;
|
||||
e.what();
|
||||
cout << e.what() << endl;
|
||||
return e.errorCode();
|
||||
}
|
||||
}
|
||||
|
@ -72,8 +72,7 @@ try
|
||||
}
|
||||
catch (NcException& e)
|
||||
{
|
||||
cout << "unknown error"<<endl;
|
||||
e.what();
|
||||
cout << e.what() << endl;
|
||||
return e.errorCode();
|
||||
}
|
||||
}
|
||||
|
@ -78,8 +78,7 @@ try
|
||||
}
|
||||
catch (NcException& e)
|
||||
{
|
||||
cout << "unknown error"<<endl;
|
||||
e.what();
|
||||
cout << e.what() << endl;
|
||||
return e.errorCode();
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user