Skip to content

Commit

Permalink
tests: remove clearenv in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Raab committed Apr 14, 2018
1 parent 355b5da commit 356317a
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tests/cframework/tests.c
Expand Up @@ -27,9 +27,6 @@
int nbError;
int nbTest;

uid_t nbUid;
gid_t nbGid;

char file[KDB_MAX_PATH_LENGTH];
char srcdir[KDB_MAX_PATH_LENGTH];

Expand All @@ -51,18 +48,6 @@ int init (int argc, char ** argv)
char * tmpvar;
int fd;

setlocale (LC_ALL, "");

#ifdef HAVE_CLEARENV
clearenv ();
#else
unsetenv ("HOME");
unsetenv ("USER");
#endif

nbUid = getuid ();
nbGid = getgid ();

if (argc > 1)
{
strncpy (srcdir, argv[1], sizeof (srcdir));
Expand Down Expand Up @@ -115,12 +100,6 @@ Key * create_root_key (const char * backendName)
{
Key * root = keyNew ("user/tests", KEY_END);
/*Make mountpoint beneath root, and do all tests here*/
/* Not needed anymore:
keySetDir(root);
keySetUID(root, nbUid);
keySetGID(root, nbGid);
keySetComment (root, "backend root key for tests");
*/
keyAddBaseName (root, backendName);
keySetString (root, backendName);
keySetString (root, backendName);
Expand Down

0 comments on commit 356317a

Please sign in to comment.