*hiss* NULL is important. sync_test_refactor
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Mon, 25 Feb 2019 16:36:16 +0100
branchsync_test_refactor
changeset 33154d8f93b6cdcb
parent 3314 18a40b81649a
child 3316 a63e2fb38bee
*hiss* NULL is important.
test/src/EngineTestSuite.cc
test/src/pEpTestDevice.cc
     1.1 --- a/test/src/EngineTestSuite.cc	Mon Feb 25 12:28:51 2019 +0100
     1.2 +++ b/test/src/EngineTestSuite.cc	Mon Feb 25 16:36:16 2019 +0100
     1.3 @@ -13,6 +13,7 @@
     1.4  #include <string>
     1.5  #include <vector>
     1.6  #include <utility>
     1.7 +#include <cpptest.h>
     1.8  
     1.9  #include "platform_unix.h"
    1.10  
     2.1 --- a/test/src/pEpTestDevice.cc	Mon Feb 25 12:28:51 2019 +0100
     2.2 +++ b/test/src/pEpTestDevice.cc	Mon Feb 25 16:36:16 2019 +0100
     2.3 @@ -111,6 +111,7 @@
     2.4      
     2.5      if (active)
     2.6          pEpTestDevice::active->unset_device_environment();
     2.7 +        
     2.8      set_device_environment();    
     2.9  }
    2.10  
    2.11 @@ -118,6 +119,7 @@
    2.12      unset_device_environment();
    2.13      // FIXME: Remove homedir
    2.14      nftw((device_dir).c_str(), util_delete_filepath, 100, FTW_DEPTH);
    2.15 +    active = NULL;
    2.16  }
    2.17  
    2.18  void pEpTestDevice::switch_context(pEpTestDevice* switch_to) {