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-Tag: 0.56.18~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4742a9ed0a86efb373fa6f4790a41b03d834e50;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 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 (""); }