From: Øyvind Kolås Date: Thu, 28 May 2020 12:07:20 +0000 (+0200) Subject: tests: use putenv when setting env vars, for win32 compatibility X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~9^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fc4f17ff3cb750d714188b6f063e28bd55ba0ee1;p=babl.git tests: use putenv when setting env vars, for win32 compatibility --- diff --git a/tests/conversions.c b/tests/conversions.c index 3074c4f..9503d04 100644 --- a/tests/conversions.c +++ b/tests/conversions.c @@ -58,7 +58,8 @@ int main (int argc, char **argv) { - setenv ("BABL_DEBUG_MISSING", "1", 1); + putenv ("BABL_DEBUG_CONVERSIONS" "=" "1"); + putenv ("BABL_DEBUG_MISSING" "=" "1"); babl_init (); for (int i = 0; i < sizeof (fishes)/sizeof(fishes[0]);i ++)