Philip Withnall 9e45b95816 gtestutils: Add a new g_assert_no_errno() test macro
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>
2020-03-04 15:32:25 +00:00
..
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2010-07-10 23:56:45 -04:00
2017-05-24 11:58:19 +02:00
2017-02-20 12:40:26 +01:00
2014-10-02 14:41:01 -04:00
2010-07-05 23:43:47 -04:00
2018-12-17 16:19:31 -05:00
2011-02-13 23:49:19 -05:00
2018-12-28 15:30:28 +01:00
2011-10-08 19:02:06 -04:00
2017-05-24 11:58:19 +02:00
2013-11-23 00:39:07 -05:00
2010-07-07 22:03:02 -04:00
2019-05-01 13:01:14 -07:00
2020-01-21 19:54:55 +04:00
2017-05-24 11:58:19 +02:00
2011-10-13 01:00:57 -04:00
2017-05-24 11:58:19 +02:00
2011-01-27 23:07:53 -05:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-12-17 17:16:03 +00:00
2015-09-12 11:13:45 -04:00
2017-05-24 11:58:19 +02:00
2015-08-31 13:59:48 -04:00
2020-02-07 16:24:48 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2019-11-25 13:09:25 +01:00