[LTP] [PATCH v2] msgstress01: remove TWARN from runtime remaining

Li Wang liwang@redhat.com
Thu Jun 27 14:15:20 CEST 2024


Cyril Hrubis <chrubis@suse.cz> wrote:

This is not the number of messages though, it's incremented by writer
> threads once they send num_iteration messages. So most of the time it
> will either be 0 if we had to stop the execution because of runtime, or
> 2 * num_messages, if we managed finish in time.
>

Make sense!

I modified the patch and pushed it like this:

--- a/testcases/kernel/syscalls/ipc/msgstress/msgstress01.c
+++ b/testcases/kernel/syscalls/ipc/msgstress/msgstress01.c
@@ -214,7 +214,7 @@ static void run(void)
                        break;

                if (!tst_remaining_runtime()) {
-                       tst_res(TWARN, "Out of runtime during forking...");
+                       tst_res(TCONF, "Out of runtime during forking...");
                        *stop = 1;
                        break;
                }
@@ -243,7 +243,7 @@ static void run(void)
        remove_queues();

        if (!(*fail))
-               tst_res(TPASS, "Test passed. All messages have been
received");
+               tst_res(TPASS, "Some messages received");
 }



-- 
Regards,
Li Wang


More information about the ltp mailing list