diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2018-06-27 11:47:18 +0200 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2018-06-27 13:17:43 +0100 |
commit | e13c1d66b7a58752be642905b9904d3cad1763d5 (patch) | |
tree | 6373de178c0f4cbe3e83d58f7c282e06d5819022 /tests/test-region.c | |
parent | 0ac8e55ddfe465437c3c18717c3e68487edb83ea (diff) |
test-region: Use GTest API
Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'tests/test-region.c')
-rw-r--r-- | tests/test-region.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/test-region.c b/tests/test-region.c index 38b3203..5a00cce 100644 --- a/tests/test-region.c +++ b/tests/test-region.c @@ -127,7 +127,7 @@ enum { EXPECT_CONT, }; -int main(void) +static void test_region(void) { QRegion _r1, _r2, _r3; QRegion *r1 = &_r1; @@ -396,6 +396,13 @@ int main(void) region_destroy(r3); region_destroy(r1); region_destroy(r2); +} + +int main(int argc, char **argv) +{ + g_test_init(&argc, &argv, NULL); + + g_test_add_func("/spice-common/region", test_region); - return 0; + return g_test_run(); } |