Fixed unittests on Linux
authorEdouard Tisserant
Mon, 31 Aug 2015 16:34:18 +0200
changeset 3459e129a270a46
parent 344 ac7ea638c723
child 346 68a5a5e22905
Fixed unittests on Linux
test/message_api_test.cc
test/mime_test.cc
     1.1 --- a/test/message_api_test.cc	Sun Aug 30 15:41:11 2015 +0200
     1.2 +++ b/test/message_api_test.cc	Mon Aug 31 16:34:18 2015 +0200
     1.3 @@ -1,3 +1,5 @@
     1.4 +#include <stdlib.h>
     1.5 +#include <string.h>
     1.6  #include "platform.h"
     1.7  #include <iostream>
     1.8  #include <fstream>
     2.1 --- a/test/mime_test.cc	Sun Aug 30 15:41:11 2015 +0200
     2.2 +++ b/test/mime_test.cc	Mon Aug 31 16:34:18 2015 +0200
     2.3 @@ -1,3 +1,5 @@
     2.4 +#include <stdlib.h>
     2.5 +#include <string.h>
     2.6  #include "platform.h"
     2.7  
     2.8  #include <iostream>
     2.9 @@ -11,7 +13,7 @@
    2.10  
    2.11  void test_mime_decoding(string filename) {
    2.12      cout << "opening " << filename << " for reading\n";
    2.13 -    ifstream inFile3 (filename);
    2.14 +    ifstream inFile3 (filename.c_str());
    2.15      assert(inFile3.is_open());
    2.16  
    2.17      string mimetext3;