mirror of
https://github.com/flatpak/flatpak.git
synced 2026-06-30 03:07:06 -04:00
What isn't tested usually doesn't work, and the only way to use libglnx is as a subproject, so test it like that. Signed-off-by: Simon McVittie <smcv@collabora.com>
18 lines
286 B
C
18 lines
286 B
C
/*
|
|
* Copyright 2022 Collabora Ltd.
|
|
* SPDX-License-Identifier: LGPL-2.0-or-later
|
|
*/
|
|
|
|
#include <libglnx.h>
|
|
#include <libglnx-testlib.h>
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
_GLNX_TEST_DECLARE_ERROR (local_error, error);
|
|
|
|
glnx_throw (error, "Whatever");
|
|
g_clear_error (&local_error);
|
|
return 0;
|
|
}
|