netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=78637e708b70df76eafd18c8f2a4d643b1996376

commit 78637e708b70df76eafd18c8f2a4d643b1996376
Author: Alastair Poole <nets...@gmail.com>
Date:   Mon Oct 5 13:19:24 2020 +0100

    main: Differentiate tests.
    
    This saves me a job.
---
 src/bin/main.c | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/bin/main.c b/src/bin/main.c
index 48c7ec2..469428b 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -56,7 +56,7 @@ _win_add(void)
 
 #if defined(DEVELOPMENT)
 static void
-_test(void)
+_test(int all)
 {
    Sys_Info *inf;
    Eina_List *procs, *disks;
@@ -68,6 +68,8 @@ _test(void)
    inf = system_info_all_get();
    system_info_all_free(inf);
 
+   if (!all) goto out;
+
    eina_init();
    ecore_init();
 
@@ -88,10 +90,11 @@ _test(void)
           }
         free(path);
      }
-   printf("Ending testing\n");
 
    ecore_shutdown();
    eina_shutdown();
+out:
+   printf("Ending testing\n");
 }
 #endif
 
@@ -113,7 +116,12 @@ main(int argc, char **argv)
 #if defined(DEVELOPMENT)
         else if (!strcmp(argv[i], "-t"))
           {
-             _test();
+             _test(1);
+             exit(0);
+          }
+        else if (!strcmp(argv[i], "-T"))
+          {
+             _test(0);
              exit(0);
           }
 #endif

-- 


Reply via email to