This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit ab5bf5b31f49d5a1750fb439c543415c8db81799
Author: dongjiuzhu1 <[email protected]>
AuthorDate: Wed May 28 17:48:40 2025 +0800

    system/uorb/test: Do not run the latency test by default.
    
    test_multi() runs latency_test() as part of every uorb_unit_test run.
    The latency test publishes for a long time and its result depends on
    the system load, so it makes the default test slow and fails on busy
    targets although uORB itself works.
    
    Remove latency_test() from test_multi(). It can still be run on its own
    with "uorb_unit_test latency_test". Print "TEST PASS" / "TEST FAIL" at
    the end so that the result is easy to find in the log.
    
    Signed-off-by: dongjiuzhu1 <[email protected]>
---
 system/uorb/test/unit_test.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/system/uorb/test/unit_test.c b/system/uorb/test/unit_test.c
index 897140618..748a0f8d9 100644
--- a/system/uorb/test/unit_test.c
+++ b/system/uorb/test/unit_test.c
@@ -550,11 +550,6 @@ static int test_multi(int *afds, int *sfds)
       return test_fail("sub #1 val. mismatch: %d", sub_sample.val);
     }
 
-  if (OK != latency_test(false))
-    {
-      return test_fail("latency test failed");
-    }
-
   orb_unsubscribe(sfds[0]);
   orb_unsubscribe(sfds[1]);
 
@@ -1166,12 +1161,12 @@ int main(int argc, FAR char *argv[])
     {
       if (test() == OK)
         {
-          printf("PASS\n");
+          printf("TEST PASS\n");
           return 0;
         }
       else
         {
-          printf("FAIL\n");
+          printf("TEST FAIL\n");
           return -1;
         }
     }

Reply via email to