test/*: add more missing stdlib.h includes

This commit is contained in:
Max Kellermann 2013-11-05 17:28:23 +01:00
parent 3f21581a81
commit b631b552bb
4 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@
#include <glib.h> #include <glib.h>
#include <string.h> #include <string.h>
#include <stdlib.h>
class ArchiveLookupTest : public CppUnit::TestFixture { class ArchiveLookupTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(ArchiveLookupTest); CPPUNIT_TEST_SUITE(ArchiveLookupTest);

View File

@ -27,6 +27,7 @@
#include <cppunit/ui/text/TestRunner.h> #include <cppunit/ui/text/TestRunner.h>
#include <string.h> #include <string.h>
#include <stdlib.h>
class ByteReverseTest : public CppUnit::TestFixture { class ByteReverseTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(ByteReverseTest); CPPUNIT_TEST_SUITE(ByteReverseTest);

View File

@ -23,6 +23,8 @@
#include <cppunit/extensions/TestFactoryRegistry.h> #include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h> #include <cppunit/ui/text/TestRunner.h>
#include <stdlib.h>
int int
main(gcc_unused int argc, gcc_unused char **argv) main(gcc_unused int argc, gcc_unused char **argv)
{ {

View File

@ -11,6 +11,7 @@
#include <cppunit/extensions/HelperMacros.h> #include <cppunit/extensions/HelperMacros.h>
#include <string.h> #include <string.h>
#include <stdlib.h>
class UriUtilTest : public CppUnit::TestFixture { class UriUtilTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(UriUtilTest); CPPUNIT_TEST_SUITE(UriUtilTest);