From: Rico Tzschichholz Date: Sat, 18 May 2024 14:22:02 +0000 (+0200) Subject: tests: Don't take the chance to conflict with C99 constant of stdbool.h X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=ed0077a101ddc5abe39045c36f8aeb053e5c34dd;p=thirdparty%2Fvala.git tests: Don't take the chance to conflict with C99 constant of stdbool.h --- diff --git a/tests/errors/bug778224.c-expected b/tests/errors/bug778224.c-expected index 436318200..3225709d3 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 (""); }