[NCF-344] Modified addvar test to return 0 when called without an argument. Test doesn't run unless passed a file, but it isn't a failure. The test is run properly through a shell script already.

This commit is contained in:
Ward Fisher 2015-10-30 17:11:14 +00:00
parent 32eee4bbdb
commit f330e6f11a

View File

@ -27,7 +27,7 @@ int main(int argc, char** argv) {
if (argc != 2) {
printf("Usage: %s [filename]\n",argv[0]);
exit(1);
exit(0);
}
err = nc_open(argv[1], NC_WRITE, &ncid); ERR
@ -82,5 +82,3 @@ int main(int argc, char** argv) {
*/
return 0;
}