tests: use putenv when setting env vars, for win32 compatibility
authorØyvind Kolås <pippin@gimp.org>
Thu, 28 May 2020 12:07:20 +0000 (14:07 +0200)
committerØyvind Kolås <pippin@gimp.org>
Thu, 28 May 2020 12:07:32 +0000 (14:07 +0200)
tests/conversions.c

index 3074c4fd75bc2425fd9192c0f95a0d300791016d..9503d041dc506ef86b9bbbf116e80f6385491afd 100644 (file)
@@ -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 ++)