From 5312efb3108ffe89e52e3276c42df3a7ea02b5e9 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sun, 22 Oct 2017 13:20:29 +0200 Subject: [PATCH] [Tests] Fix tests for theme-parser. --- test/theme-parser-test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/theme-parser-test.c b/test/theme-parser-test.c index 316f7405..cb38fac0 100644 --- a/test/theme-parser-test.c +++ b/test/theme-parser-test.c @@ -162,9 +162,11 @@ START_TEST (test_core_error_root ) ck_assert_ptr_null ( rofi_theme->widgets ); ck_assert_ptr_null ( rofi_theme->properties ); ck_assert_ptr_null ( rofi_theme->parent ); + const char *error_str = "Error while parsing theme: Blaat\n"\ +" Parser error: syntax error, unexpected end of file, expecting "bracket open ('{')" or "Selector separator (',')"\n"\ +" Location: line 1 column 6 to line 1 column 6\n"; + ck_assert_str_eq ( error_msg->str, error_str ); - ck_assert_str_eq ( error_msg->str, "Error while parsing theme: Blaat\n"\ - "\tParser error: syntax error, unexpected error from file parser, expecting end of file or "Element section ('# {name} { ... }')" or "Default settings section ( '* { ... }')" or Configuration block\n Location: line 1 column 1 to line 1 column 2\n"); g_string_free ( error_msg, TRUE ); error_msg = NULL;