mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
[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:
parent
32eee4bbdb
commit
f330e6f11a
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user