Module: wine
Branch: master
Commit: fdfd19cb47ff6039b085afdbdcc61723e716024f
URL: https://source.winehq.org/git/wine.git/?a=commit;h=fdfd19cb47ff6039b085afdb…
Author: Eric Pouech <eric.pouech(a)gmail.com>
Date: Thu Apr 21 17:39:11 2022 +0200
kernel32/tests: Make the console tests pass if current console is shell-no-window.
Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/kernel32/tests/process.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dlls/kernel32/tests/process.c b/dlls/kernel32/tests/process.c
index 8f18a0d37a7..d94cecd3462 100644
--- a/dlls/kernel32/tests/process.c
+++ b/dlls/kernel32/tests/process.c
@@ -1541,8 +1541,13 @@ static void test_Console(void)
startup.hStdOutput = CreateFileA("CONOUT$", GENERIC_READ|GENERIC_WRITE, 0, &sa, OPEN_EXISTING, 0, 0);
/* first, we need to be sure we're attached to a console */
- if (!is_console(startup.hStdInput) || !is_console(startup.hStdOutput))
+ if (startup.hStdInput == INVALID_HANDLE_VALUE || startup.hStdOutput == INVALID_HANDLE_VALUE)
{
+ /* this fails either when this test process is run detached from console
+ * (unlikely, as this very process must be explicitly created with detached flag),
+ * or is attached to a Wine's shell-no-window kind of console (if the later, detach from it)
+ */
+ FreeConsole();
/* we're not attached to a console, let's do it */
AllocConsole();
startup.hStdInput = CreateFileA("CONIN$", GENERIC_READ|GENERIC_WRITE, 0, &sa, OPEN_EXISTING, 0, 0);
Module: tools
Branch: master
Commit: 2752cda32ea515e5a7cac60ef342961394b25170
URL: https://source.winehq.org/git/tools.git/?a=commit;h=2752cda32ea515e5a7cac60…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Fri Apr 22 00:03:21 2022 +0200
testbot/web: Simplify generating the Submit page header.
This takes advantage of the fact that all of the @Headers parts are
joined with linebreaks.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/web/Submit.pl | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/testbot/web/Submit.pl b/testbot/web/Submit.pl
index 9292d38..ca225b6 100644
--- a/testbot/web/Submit.pl
+++ b/testbot/web/Submit.pl
@@ -620,14 +620,13 @@ sub GetHeaderText($)
}
if ($self->{Page} == 2 or $self->{Page} == 4)
{
- my $HeaderText = "Select the VMs on which you want to run your test.";
+ push @Headers, "Select the VMs on which you want to run your test.";
my $VMs = CreateVMs();
$VMs->AddFilter("Status", ["offline", "maintenance"]);
if (!$VMs->IsEmpty())
{
- $HeaderText .= "<br>NOTE: Offline VMs and those undergoing maintenance will not be able to run your tests right away.";
+ push @Headers, "NOTE: Offline VMs and those undergoing maintenance will not be able to run your tests right away.";
}
- push @Headers, $HeaderText;
}
if (($self->{Page} == 3 or $self->{Page} == 0) and $self->{Impacts})
{
@@ -652,7 +651,7 @@ sub GetHeaderText($)
}
push @TestExecutables, "$ModuleName: ". join(" ", @TestUnits) if (@TestUnits);
}
- push @Headers, join("<br>\n", "Here is a list of the test executables impacted by the patch (patched test units, if any, are in italics).", @TestExecutables);
+ push @Headers, "Here is a list of the test executables impacted by the patch (patched test units, if any, are in italics).", @TestExecutables;
}
return join("<br>\n", @Headers);