* some more timezone fixes for the unit tests

This commit is contained in:
Dirk-Jan C. Binnema
2011-07-21 00:58:40 +03:00
parent 651493d47e
commit f0833ca315
4 changed files with 26 additions and 17 deletions

View File

@ -41,6 +41,23 @@ test_mu_common_get_random_tmpdir (void)
}
const char*
set_tz (const char* tz)
{
static const char* oldtz;
oldtz = getenv ("TZ");
if (tz)
setenv ("TZ", tz, 1);
else
unsetenv ("TZ");
tzset ();
return oldtz;
}
void
black_hole (void)
{