summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-12-10 21:15:40 +0100
committerSébastien Helleu <flashcode@flashtux.org>2014-12-10 21:15:40 +0100
commit7818e0896424e00f89a9a72eb7fd548f12a8fd49 (patch)
treeb65fe4820992a7eedeab3be783e2a66ccb230847
parent1f1611c9163554ad34e7b26dc933732c1ec7089a (diff)
downloadweechat-7818e0896424e00f89a9a72eb7fd548f12a8fd49.zip
tests: fix compilation of tests with clang (closes #275)
-rw-r--r--ChangeLog.asciidoc1
-rw-r--r--tests/unit/core/test-string.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog.asciidoc b/ChangeLog.asciidoc
index 93954eb70..3dfce9828 100644
--- a/ChangeLog.asciidoc
+++ b/ChangeLog.asciidoc
@@ -64,6 +64,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
* core: fix translation of message displayed after /upgrade
* api: fix truncated process output in hook_process() (closes #266)
* api: fix crash when reading config options with NULL value (closes #238)
+* tests: fix compilation of tests with clang (closes #275)
* irc: add missing server options "sasl_timeout" and "notify" in output of
/server listfull
* irc: use option irc.look.nick_mode_empty to display nick prefix in bar item
diff --git a/tests/unit/core/test-string.cpp b/tests/unit/core/test-string.cpp
index a22599b29..67bb99267 100644
--- a/tests/unit/core/test-string.cpp
+++ b/tests/unit/core/test-string.cpp
@@ -405,8 +405,8 @@ TEST(String, ConvertEscapedChars)
string_convert_escaped_chars ("\\0123")); /* invalid */
WEE_TEST_STR("\x41", string_convert_escaped_chars ("\\x41"));
WEE_TEST_STR("\x04z", string_convert_escaped_chars ("\\x4z"));
- WEE_TEST_STR("\u0012zz", string_convert_escaped_chars ("\\u12zz"));
- WEE_TEST_STR("\U00123456", string_convert_escaped_chars ("\\U00123456"));
+ WEE_TEST_STR(" zz", string_convert_escaped_chars ("\\u20zz"));
+ WEE_TEST_STR("\U00012345", string_convert_escaped_chars ("\\U00012345"));
WEE_TEST_STR("\U00000123zzz",
string_convert_escaped_chars ("\\U00123zzz"));
WEE_TEST_STR("",