mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-01 01:40:39 -05:00
add wl_abort private function
On many places in the code we use wl_log + abort or wl_log + assert(0). Replace these with one call to wl_abort, so that we don't mix abort(), assert(0) and we'll save few lines Signed-off-by: Marek Chalupa <mchqwerty@gmail.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
This commit is contained in:
parent
5660ea414f
commit
c7bada036d
5 changed files with 30 additions and 24 deletions
|
|
@ -31,8 +31,8 @@
|
|||
|
||||
#include "test-runner.h"
|
||||
#include "wayland-util.h"
|
||||
#include "wayland-private.h"
|
||||
|
||||
#define WL_HIDE_DEPRECATED
|
||||
#include "test-compositor.h"
|
||||
|
||||
extern int leak_check_enabled;
|
||||
|
|
@ -56,6 +56,11 @@ FAIL_TEST(fail_abort)
|
|||
abort();
|
||||
}
|
||||
|
||||
FAIL_TEST(fail_wl_abort)
|
||||
{
|
||||
wl_abort("Abort the program\n");
|
||||
}
|
||||
|
||||
FAIL_TEST(fail_kill)
|
||||
{
|
||||
kill(getpid(), SIGTERM);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue