This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository terminology.

View the commit online.

commit 606c29ad560de5887a1910cb18c17050fcdf3dda
Author: [email protected] <[email protected]>
AuthorDate: Sat Oct 31 12:22:44 2026 -0600

    tytest: set up the log domain before running unit tests
    
    Unit tests selected by name ran before emile and the tytest log domain
    were set up, and returned without shutting Eina down; the tymux
    protocol tests are about to need both. Set them up before the
    arguments are looked at, and shut down on every exit path.
---
 src/bin/tytest.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/bin/tytest.c b/src/bin/tytest.c
index 0590a77e..6dec58de 100644
--- a/src/bin/tytest.c
+++ b/src/bin/tytest.c
@@ -1100,7 +1100,7 @@ main(int argc, char **argv)
 {
    Eina_Bool dump = EINA_FALSE;
    int chunk = 0;
-   int i, res;
+   int i, ret = 0;
 
    /* Before the argument loop: the unit-test path returns out of it without
     * ever reaching tytest_common_init(), and several of those tests drive the
@@ -1109,34 +1109,33 @@ main(int argc, char **argv)
     * comes first so that simd_init() sees the CPU features. */
    eina_init();
    simd_init();
+   emile_init();
+   _log_domain = eina_log_domain_register("tytest", NULL);
 
    for (i = 1; i < argc; i++)
      {
         if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help"))
           {
              _usage(argv[0]);
-             return 0;
+             goto done;
           }
         else if (!strcmp(argv[i], "--dump")) dump = EINA_TRUE;
         else if (!strncmp(argv[i], "--chunk=", 8)) chunk = atoi(argv[i] + 8);
         /* Anything else is a unit test name, and those take over entirely. */
         else
           {
-             res = _run_tytests(argc, argv);
+             ret = _run_tytests(argc, argv);
              /* Unit tests may run ecore_shutdown(), which queues the eo
               * class and vtable frees on eina's main freeq. A running main
               * loop drains that queue; there is none on this path, so the
               * queued memory would be reported as leaked. */
              eina_freeq_clear(eina_freeq_main_get());
-             return res;
+             goto done;
           }
      }
 
-   emile_init();
    ecore_init();
 
-   _log_domain = eina_log_domain_register("tytest", NULL);
-
    tytest_common_init();
    if (chunk > 0) tytest_common_set_chunk(chunk);
 
@@ -1148,8 +1147,9 @@ main(int argc, char **argv)
    tytest_common_shutdown();
 
    ecore_shutdown();
+done:
    emile_shutdown();
    eina_shutdown();
 
-   return 0;
+   return ret;
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to