Francois Gouget : msvcrt/tests: Simplify the name of the test unit for child processes.

Alexandre Julliard julliard at winehq.org
Fri Feb 21 15:27:04 CST 2020


Module: wine
Branch: master
Commit: c2e6f4deeb26429bc65078fa80b4c0aa19d3b764
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c2e6f4deeb26429bc65078fa80b4c0aa19d3b764

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Fri Feb 21 08:08:58 2020 +0100

msvcrt/tests: Simplify the name of the test unit for child processes.

The official name (shown by --list) has no path nor extension.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcrt/tests/file.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/msvcrt/tests/file.c b/dlls/msvcrt/tests/file.c
index 63d5100de2..0c4e024a8e 100644
--- a/dlls/msvcrt/tests/file.c
+++ b/dlls/msvcrt/tests/file.c
@@ -1464,7 +1464,7 @@ static void test_file_inherit( const char* selfname )
     fd = open ("fdopen.tst", O_CREAT | O_RDWR | O_BINARY, _S_IREAD |_S_IWRITE);
     ok(fd != -1, "Couldn't create test file\n");
     arg_v[0] = get_base_name(selfname);
-    arg_v[1] = "tests/file.c";
+    arg_v[1] = "file";
     arg_v[2] = "inherit";
     arg_v[3] = buffer; sprintf(buffer, "%d", fd);
     arg_v[4] = 0;
@@ -1477,7 +1477,7 @@ static void test_file_inherit( const char* selfname )
     
     fd = open ("fdopen.tst", O_CREAT | O_RDWR | O_BINARY | O_NOINHERIT, _S_IREAD |_S_IWRITE);
     ok(fd != -1, "Couldn't create test file\n");
-    arg_v[1] = "tests/file.c";
+    arg_v[1] = "file";
     arg_v[2] = "inherit_no";
     arg_v[3] = buffer; sprintf(buffer, "%d", fd);
     arg_v[4] = 0;
@@ -2168,7 +2168,7 @@ static void test_pipes(const char* selfname)
     }
 
     arg_v[0] = get_base_name(selfname);
-    arg_v[1] = "tests/file.c";
+    arg_v[1] = "file";
     arg_v[2] = "pipes";
     arg_v[3] = str_fdr; sprintf(str_fdr, "%d", pipes[0]);
     arg_v[4] = str_fdw; sprintf(str_fdw, "%d", pipes[1]);
@@ -2197,7 +2197,7 @@ static void test_pipes(const char* selfname)
         return;
     }
 
-    arg_v[1] = "tests/file.c";
+    arg_v[1] = "file";
     arg_v[2] = "pipes";
     arg_v[3] = str_fdr; sprintf(str_fdr, "%d", pipes[0]);
     arg_v[4] = str_fdw; sprintf(str_fdw, "%d", pipes[1]);




More information about the wine-cvs mailing list