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 772964 - First parameter to Test.trap_subprocess should be nullable
First parameter to Test.trap_subprocess should be nullable
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings: GLib
0.34.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2016-10-15 03:28 UTC by Michael Catanzaro
Modified: 2016-10-19 07:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Catanzaro 2016-10-15 03:28:36 UTC
glib-2.0.vapi contains the following incorrect declaration:

	[Version (since = "2.38")]
		public static void trap_subprocess (string test_path, uint64 usec_timeout, TestSubprocessFlags test_flags);

The first parameter should be nullable. It's generated correctly in GLib-2.0.gir:

        <parameter name="test_path"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1">
          <doc xml:space="preserve">Test to run in a subprocess</doc>
          <type name="utf8" c:type="const char*"/>
        </parameter>