Skip to content

Commit

Permalink
msgstress01: remove TWARN from runtime remaining
Browse files Browse the repository at this point in the history
To mask the issue where a warning is being treated as a failure in CI
logs, we modify the code to change the message type from TWARN to TCONF.

This warning easily happens especaill on debug/slower kernel:

    msgstress01.c:217: TWARN: Out of runtime during forking...

Signed-off-by: Li Wang <[email protected]>
Suggested-by: Cyril Hrubis <[email protected]>
  • Loading branch information
wangli5665 committed Jun 27, 2024
1 parent e19a17a commit 072f359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testcases/kernel/syscalls/ipc/msgstress/msgstress01.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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");
}

static void setup(void)
Expand Down

0 comments on commit 072f359

Please sign in to comment.