From 0fcfa65f153b585655635ec1296829d8ea62f21c Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 13 Jun 2015 20:53:51 +0100 Subject: Use regex for multiline assert in rooms functional test --- tests/functionaltests/test_rooms.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/functionaltests/test_rooms.c b/tests/functionaltests/test_rooms.c index c81ded6b..0e53d0db 100644 --- a/tests/functionaltests/test_rooms.c +++ b/tests/functionaltests/test_rooms.c @@ -27,8 +27,11 @@ rooms_query(void **state) prof_input("/rooms"); - assert_true(prof_output_exact("chatroom@conference.localhost, (A chat room)")); - assert_true(prof_output_exact("hangout@conference.localhost, (Another chat room)")); + assert_true(prof_output_regex( + "chatroom@conference.localhost, \\(A chat room\\)" + ".+" + "hangout@conference.localhost, \\(Another chat room\\)" + )); assert_true(stbbr_last_received( "" -- cgit 1.4.1-2-gfad0