Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some bad parameter bugs in type functions, add documentation and testing #780

Conversation

edhartnett
Copy link
Contributor

@edhartnett edhartnett commented Jan 18, 2018

While waiting for other PRs to be merged, I took a stab at improving the testing of nc4type.c, currently the lowest tested file in libsrc4 with 65% test coverage.

While adding tests I found and fixed a few problems, including SEGFAULT if NULL is passed for name parameter when adding a user-defined type.

Also fixed bug in nc_inq_type_equal() relating to uncommitted types. Documented the tricky behavior of this function with uncommitted user-defined types.

Also also added a bunch of extra tests. ;-)

Part of #701.
Fixes #779.
Fixes #777.
Fixes #776.
Fixes #775.
Fixes #774.

@edhartnett
Copy link
Contributor Author

These changes are now part of #788 so I will close this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment