From a4742a9ed0a86efb373fa6f4790a41b03d834e50 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Sat, 18 May 2024 16:22:02 +0200 Subject: [PATCH] tests: Don't take the chance to conflict with C99 constant of stdbool.h --- tests/errors/bug778224.c-expected | 6 +++--- tests/errors/bug778224.vala | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/errors/bug778224.c-expected b/tests/errors/bug778224.c-expected index 1e080fd22..166d17a85 100644 --- a/tests/errors/bug778224.c-expected +++ b/tests/errors/bug778224.c-expected @@ -34,8 +34,8 @@ struct _Foo { gint i; }; -VALA_EXTERN gboolean true; -gboolean true = TRUE; +VALA_EXTERN gboolean truesy; +gboolean truesy = TRUE; VALA_EXTERN GQuark foo_error_quark (void); VALA_EXTERN GType foo_error_get_type (void) G_GNUC_CONST ; @@ -75,7 +75,7 @@ foo (GError** error) Foo _tmp3_ = {0}; GError* _inner_error0_ = NULL; Foo result; - if (true) { + if (truesy) { GError* _tmp0_; _tmp0_ = g_error_new_literal (FOO_ERROR, FOO_ERROR_BAR, ""); _inner_error0_ = _tmp0_; diff --git a/tests/errors/bug778224.vala b/tests/errors/bug778224.vala index 3a61a029b..cfbbfc39b 100644 --- a/tests/errors/bug778224.vala +++ b/tests/errors/bug778224.vala @@ -7,10 +7,10 @@ struct Foo { int i; } -bool @true = true; +bool truesy = true; Foo foo () throws FooError { - if (@true) { + if (truesy) { throw new FooError.BAR (""); } -- 2.47.2