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;