- #1251 tests should sanitize TASKDATA and TASKRC env vars (thanks to Jakub
  Wilk).
This commit is contained in:
Paul Beckingham
2013-09-07 13:22:27 -04:00
parent a295ddce2d
commit ada6e49dab
241 changed files with 985 additions and 1 deletions

View File

@@ -27,6 +27,7 @@
#include <cmake.h>
#include <iostream>
#include <stdlib.h>
#include <Context.h>
#include <Msg.h>
#include <test.h>
@@ -38,6 +39,10 @@ int main (int argc, char** argv)
{
UnitTest t (12);
// Ensure environment has no influence.
unsetenv ("TASKDATA");
unsetenv ("TASKRC");
Msg m;
t.is (m.serialize (), std::string ("client: ") + PACKAGE_STRING + "\n\n\n", "Msg::serialize '' --> '\\n\\n'");