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 <main.h>
|
||||
#include <util.h>
|
||||
#include <test.h>
|
||||
@@ -38,6 +39,10 @@ int main (int argc, char** argv)
|
||||
{
|
||||
UnitTest t (40);
|
||||
|
||||
// Ensure environment has no influence.
|
||||
unsetenv ("TASKDATA");
|
||||
unsetenv ("TASKRC");
|
||||
|
||||
// TODO bool confirm (const std::string&);
|
||||
// TODO int confirm3 (const std::string&);
|
||||
// TODO int confirm4 (const std::string&);
|
||||
|
||||
Reference in New Issue
Block a user