diff options
author | Colin Snover | 2017-11-20 21:46:37 -0600 |
---|---|---|
committer | Colin Snover | 2017-11-20 21:50:06 -0600 |
commit | b89b9095d6b96c7414b03b9cb848f42bcc3ad62c (patch) | |
tree | fcf4d3fee0eb0326b0785776c7337913134d521e /test/common | |
parent | cf61174396cdbbf371cb26bac753a190277da6e5 (diff) | |
download | scummvm-rg350-b89b9095d6b96c7414b03b9cb848f42bcc3ad62c.tar.gz scummvm-rg350-b89b9095d6b96c7414b03b9cb848f42bcc3ad62c.tar.bz2 scummvm-rg350-b89b9095d6b96c7414b03b9cb848f42bcc3ad62c.zip |
TESTS: Remove zero-length string and associated -Wformat massage
This was being patched out downstream in Debian. A solution that
works for everybody is to just not use a zero-length string when
testing formatting with no conversion specifications.
Diffstat (limited to 'test/common')
-rw-r--r-- | test/common/str.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/common/str.h b/test/common/str.h index 9f8c6fbd60..783ed53c48 100644 --- a/test/common/str.h +++ b/test/common/str.h @@ -340,7 +340,7 @@ class StringTestSuite : public CxxTest::TestSuite } void test_string_printf() { - TS_ASSERT_EQUALS( Common::String::format(""), "" ); + TS_ASSERT_EQUALS( Common::String::format(" "), " " ); TS_ASSERT_EQUALS( Common::String::format("%s", "test"), "test" ); TS_ASSERT_EQUALS( Common::String::format("%s.s%.02d", "monkey", 1), "monkey.s01" ); TS_ASSERT_EQUALS( Common::String::format("Some %s to make this string longer than the default built-in %s %d", "text", "capacity", 123456), "Some text to make this string longer than the default built-in capacity 123456" ); |