diff mbox series

[1/2] syscalls/mq: don't use TWARN with tst_brk()

Message ID 88db8a4def940c63ec2836cec1d0041db00ffd4c.1541710635.git.jstancek@redhat.com
State Accepted
Headers show
Series [1/2] syscalls/mq: don't use TWARN with tst_brk() | expand

Commit Message

Jan Stancek Nov. 8, 2018, 8:59 p.m. UTC
Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 testcases/kernel/syscalls/utils/mq.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Petr Vorel Dec. 4, 2018, 4:58 p.m. UTC | #1
Hi Jan,

Acked-by: Petr Vorel <pvorel@suse.cz>


Kind regards,
Petr
Cyril Hrubis Dec. 11, 2018, 2:48 p.m. UTC | #2
Hi!
IMHO this is obvious enough to go in without review...

You can add my ack here nevertheless.
diff mbox series

Patch

diff --git a/testcases/kernel/syscalls/utils/mq.h b/testcases/kernel/syscalls/utils/mq.h
index 0bdac97229cd..b55228c885dc 100644
--- a/testcases/kernel/syscalls/utils/mq.h
+++ b/testcases/kernel/syscalls/utils/mq.h
@@ -74,7 +74,7 @@  static void cleanup_queue(mqd_t fd)
 
 	memset(&mqstat, 0, sizeof(mqstat));
 	if (mq_getattr(fd, &mqstat) == -1) {
-		tst_brk(TWARN, "mq_getattr() failed");
+		tst_brk(TBROK|TERRNO, "mq_getattr() failed");
 		return;
 	}