todo_wine help

Phil Lodwick Phil.Lodwick at EFI.COM
Mon Feb 13 13:23:54 CST 2006


I have a test in msvcrt/file.c that requires there be no TMP environment
variable.  I thought I would just do a _putenv("TMP="), but this seems to
interfere with todo_wine.

Basically,

static void test_todo( void )
{
  todo_wine {
  ok((1 == 1), "This shows up correctly\n");
  }
  _putenv("TMP=");
  todo_wine {
  ok((1 == 1), "This does not show\n");
  }
}

My quick search has not turned up anything obvious.  Can somebody help me
understand what is going on here?  Assuming TMP is actually required by
somebody else, how do I correctly do my test and check with no TMP
environment variable?

Thanks,
Phil
-------------- next part --------------
Index: file.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/tests/file.c,v
retrieving revision 1.21
diff -u -r1.21 file.c
--- dlls/msvcrt/tests/file.c	21 Nov 2005 11:58:11 -0000	1.21
+++ dlls/msvcrt/tests/file.c	13 Feb 2006 19:14:41 -0000
@@ -455,6 +455,19 @@
     ok(_unlink(fname3) == 0, "Couldn't unlink file named '%s'\n", fname3);
 }
 
+static void test_todo( void )
+{
+  todo_wine {
+  ok((1 == 1), "This shows up correctly\n");
+  }

+

+  _putenv("TMP=");
+
+  todo_wine {
+  ok((1 == 1), "This does not show\n");
+  }
+}

+
 START_TEST(file)
 {
     int arg_c;
@@ -480,4 +493,5 @@
     test_fgetwc();
     test_file_put_get();
     test_tmpnam();
+    test_todo();
 }


More information about the wine-devel mailing list