mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 04:13:07 +02:00
Bug #1251
- #1251 tests should sanitize TASKDATA and TASKRC env vars (thanks to Jakub Wilk).
This commit is contained in:
parent
a295ddce2d
commit
ada6e49dab
241 changed files with 985 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <cmake.h>
|
||||
#include <stdlib.h>
|
||||
#include <Context.h>
|
||||
#include <RX.h>
|
||||
#include <test.h>
|
||||
|
@ -36,6 +37,10 @@ int main (int argc, char** argv)
|
|||
{
|
||||
UnitTest ut (23);
|
||||
|
||||
// Ensure environment has no influence.
|
||||
unsetenv ("TASKDATA");
|
||||
unsetenv ("TASKRC");
|
||||
|
||||
std::string text = "This is a test.";
|
||||
|
||||
RX r1 ("i. ", true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue