-
Notifications
You must be signed in to change notification settings - Fork 52
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
Copying Modulemd.ModuleStream.community into C #418
Copying Modulemd.ModuleStream.community into C #418
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
libmodulemd:ERROR:../modulemd/tests/test-modulemd-modulestream.c:1993:module_stream_v2_test_community: assertion failed (community == MMD_TEST_DOC_TEXT): (NULL == "http://example.com")
The error is right there in the paste.
The problem is that you need to use the correct objects when getting and setting values. MMD_TEST_DOC_PROP
is not the right property for setting and retrieving the 'community' property.
@@ -2311,6 +2411,20 @@ main (int argc, char *argv[]) | |||
module_stream_v2_test_rpm_map, | |||
NULL); | |||
|
|||
g_test_add ("/modulemd/v2/modulestream/v1/community", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest you to use g_test_add_func()
like its done below because we have to change it into that anyway.
NULL, | ||
module_stream_v2_test_community, | ||
NULL); | ||
|
||
g_test_add_func ("/modulemd/v2/modulestream/v2/unicode/description", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please replace g_test_add()
with this.
|
Copying python tests to C Fixed some errors Added v1 module Fixed some errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
I'm getting error while using ninja test, here is the error https://paste.centos.org/view/83ee0ace