Bug #1251
- #1251 tests should sanitize TASKDATA and TASKRC env vars (thanks to Jakub Wilk).
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <cmake.h>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <stdlib.h>
|
||||
#include <Context.h>
|
||||
#include <Task.h>
|
||||
#include <Taskmod.h>
|
||||
@@ -41,6 +42,10 @@ int main (int argc, char** argv)
|
||||
{
|
||||
UnitTest t (16);
|
||||
|
||||
// Ensure environment has no influence.
|
||||
unsetenv ("TASKDATA");
|
||||
unsetenv ("TASKRC");
|
||||
|
||||
bool good = true;
|
||||
|
||||
// base timestamp
|
||||
|
||||
Reference in New Issue
Block a user