Skip to content

gtestutils: Add a new g_assert_no_errno() test macro

Philip Withnall requested to merge pwithnall/glib:assert-no-errno into master

This is for use in testing POSIX-style functions like rmdir(), which return an integer < 0 on failure, and return their error information in errno.

The new macro prints errno and g_strerror (errno) on failure.

Includes a unit test.

Signed-off-by: Philip Withnall withnall@endlessm.com

Edited by Philip Withnall

Merge request reports