Bug #1251
- #1251 tests should sanitize TASKDATA and TASKRC env vars (thanks to Jakub Wilk).
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
#include <cmake.h>
|
||||
#include <iostream>
|
||||
#include <stdlib.h>
|
||||
#include <JSON.h>
|
||||
#include <test.h>
|
||||
#include <Context.h>
|
||||
@@ -106,6 +107,10 @@ int main (int argc, char** argv)
|
||||
{
|
||||
UnitTest t (NUM_POSITIVE_TESTS + NUM_NEGATIVE_TESTS + 22);
|
||||
|
||||
// Ensure environment has no influence.
|
||||
unsetenv ("TASKDATA");
|
||||
unsetenv ("TASKRC");
|
||||
|
||||
// Positive tests.
|
||||
for (int i = 0; i < NUM_POSITIVE_TESTS; ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user