gspawn: Make error codes on Windows more specific
commit6c8da69443ee8eee1f06dfdf6a01500d5402a7f3
authorPhilip Withnall <withnall@endlessm.com>
Tue, 12 Jun 2018 14:41:51 +0000 (12 15:41 +0100)
committerPhilip Withnall <withnall@endlessm.com>
Tue, 12 Jun 2018 15:13:44 +0000 (12 16:13 +0100)
tree330903ea095d0dec19812910775f5e840d9711f9
parentf4d2051fc13ff18af0d8cb8bed31115976f0aac8
gspawn: Make error codes on Windows more specific

A slightly modified patch originally written by Morten Welinder
<terra@gnome.org> to make the error codes returned by g_spawn_*()
functions more specific when on Windows. They are already this specific
on Linux.

Add a unit test for the ENOENT case.

https://gitlab.gnome.org/GNOME/glib/issues/303

Signed-off-by: Philip Withnall <withnall@endlessm.com>
glib/gspawn-win32-helper.c
glib/gspawn-win32.c
glib/tests/spawn-singlethread.c