summaryrefslogtreecommitdiff
path: root/test/libapt/globalerror_test.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-08-15 18:22:44 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-08-15 18:22:44 +0200
commitbf5438c1904c57d5f03c58a2f7d6e972020f91f9 (patch)
tree0f66e5938832c630b92591cd6cd8e549d3f15094 /test/libapt/globalerror_test.cc
parenta288748e481c707127b416439407eb613cd12a8a (diff)
write a proper testcase replacing the print-only uri.cc test
Diffstat (limited to 'test/libapt/globalerror_test.cc')
-rw-r--r--test/libapt/globalerror_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libapt/globalerror_test.cc b/test/libapt/globalerror_test.cc
index 7d933f5a8..5d27414f9 100644
--- a/test/libapt/globalerror_test.cc
+++ b/test/libapt/globalerror_test.cc
@@ -101,7 +101,7 @@ int main(int argc,char *argv[])
longText.clear();
for (size_t i = 0; i < 50; ++i)
longText.append("РезийбёбAZ");
- equals(_error->Warning(longText.c_str()), false);
+ equals(_error->Warning("%s", longText.c_str()), false);
equals(_error->PopMessage(text), false);
equals(text, longText);