This was causing intermittent failures on macOS, depending on whether
the tmpdir ended with a
g_strrstr() is not the
right function to use to extract a basename from a path, for this
When it failed, the macOS test was failing with:
ok 16 /gsubprocess/env Bail out! GLib-GIO:ERROR:../gio/tests/gsubprocess.c:1507:test_cwd: assertion failed (basename == tmp_lineend_basename): ("/T\n" == "/\n")
The test now passes reliably, which means that it can be removed from the list of expected failures on macOS.
Signed-off-by: Philip Withnall email@example.com