After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 616358 - Negative test case for bad (out) case, not setting the *out_val in a (transfer full) case
Negative test case for bad (out) case, not setting the *out_val in a (transfe...
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-04-21 03:58 UTC by Zach Goldberg
Modified: 2015-02-07 17:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Negative test case for bad (out) case, not setting the *out_val in a (transfer full) case (1.54 KB, patch)
2010-04-21 03:58 UTC, Zach Goldberg
accepted-commit_now Details | Review

Description Zach Goldberg 2010-04-21 03:58:24 UTC
Used by PyGi for bug #616043
Comment 1 Zach Goldberg 2010-04-21 03:58:26 UTC
Created attachment 159229 [details] [review]
Negative test case for bad (out) case, not setting the *out_val in a (transfer full) case
Comment 2 Colin Walters 2010-04-26 16:57:57 UTC
Review of attachment 159229 [details] [review]:

It seems a bit dangerous to me to have invalid C code in the test suite; e.g. if someone were to write an automated script that generated different kinds of calls, this could be a potential trap.  But on the other hand hopefully they'd quickly realize what was wrong.

You might note in the test case that to be robust against broken C functions, bindings can initialize even OUT values to NULL.
Comment 3 Zach Goldberg 2010-04-26 17:04:27 UTC
pushed with an updated comment.
Comment 4 André Klapper 2015-02-07 17:03:28 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]