From 8287acbe8962d64593eee98c7b83ff965aee8441 Mon Sep 17 00:00:00 2001 From: Tig Date: Fri, 19 May 2023 10:24:28 +0200 Subject: [PATCH] Release v1.11 (#2639) * Fixed global.json to use 7.0 * Adjusted clipboard unit test timeout on Windows --- ReactiveExample/ReactiveExample.csproj | 4 ++-- Terminal.Gui/Core/ConsoleDriver.cs | 2 +- Terminal.Gui/Terminal.Gui.csproj | 8 ++++---- UnitTests/Drivers/ClipboardTests.cs | 18 ++++++++++-------- UnitTests/UnitTests.csproj | 5 +++-- 5 files changed, 20 insertions(+), 17 deletions(-) diff --git a/ReactiveExample/ReactiveExample.csproj b/ReactiveExample/ReactiveExample.csproj index d1c8c9d18..6ec77039a 100644 --- a/ReactiveExample/ReactiveExample.csproj +++ b/ReactiveExample/ReactiveExample.csproj @@ -11,8 +11,8 @@ 1.10.1+6.Branch.main.Sha.f7ee66ddbf8dbcfb0d96af7d63789879091670ec - - + + diff --git a/Terminal.Gui/Core/ConsoleDriver.cs b/Terminal.Gui/Core/ConsoleDriver.cs index 275396d4d..1a7fed26c 100644 --- a/Terminal.Gui/Core/ConsoleDriver.cs +++ b/Terminal.Gui/Core/ConsoleDriver.cs @@ -1494,7 +1494,7 @@ namespace Terminal.Gui { process.StandardInput.Close (); } - if (!process.WaitForExit (5000)) { + if (!process.WaitForExit (10000)) { var timeoutError = $@"Process timed out. Command line: {process.StartInfo.FileName} {process.StartInfo.Arguments}."; throw new TimeoutException (timeoutError); } diff --git a/Terminal.Gui/Terminal.Gui.csproj b/Terminal.Gui/Terminal.Gui.csproj index fe996037d..79dfde6fb 100644 --- a/Terminal.Gui/Terminal.Gui.csproj +++ b/Terminal.Gui/Terminal.Gui.csproj @@ -10,10 +10,10 @@ - 1.10.1.0 - 1.10.1.0 - 1.10.1 - 1.10.1+6.Branch.main.Sha.f7ee66ddbf8dbcfb0d96af7d63789879091670ec + 1.11.0.0 + 1.11.0.0 + 1.11 + 1.11 diff --git a/UnitTests/Drivers/ClipboardTests.cs b/UnitTests/Drivers/ClipboardTests.cs index fa96f0961..d35ef8823 100644 --- a/UnitTests/Drivers/ClipboardTests.cs +++ b/UnitTests/Drivers/ClipboardTests.cs @@ -102,8 +102,8 @@ namespace Terminal.Gui.DriverTests { [Fact, AutoInitShutdown (useFakeClipboard: false)] public void IsSupported_Get () { - if (Clipboard.IsSupported) Assert.True (Clipboard.IsSupported); -else Assert.False (Clipboard.IsSupported); + if (Clipboard.IsSupported) Assert.True (Clipboard.IsSupported); + else Assert.False (Clipboard.IsSupported); } [Fact, AutoInitShutdown (useFakeClipboard: false)] @@ -129,15 +129,15 @@ else Assert.False (Clipboard.IsSupported); public void TrySetClipboardData_Sets_The_OS_Clipboard () { var clipText = "The TrySetClipboardData_Sets_The_OS_Clipboard unit test pasted this to the OS clipboard."; - if (Clipboard.IsSupported) Assert.True (Clipboard.TrySetClipboardData (clipText)); -else Assert.False (Clipboard.TrySetClipboardData (clipText)); + if (Clipboard.IsSupported) Assert.True (Clipboard.TrySetClipboardData (clipText)); + else Assert.False (Clipboard.TrySetClipboardData (clipText)); Application.Iteration += () => Application.RequestStop (); Application.Run (); - if (Clipboard.IsSupported) Assert.Equal (clipText, Clipboard.Contents); -else Assert.NotEqual (clipText, Clipboard.Contents); + if (Clipboard.IsSupported) Assert.Equal (clipText, Clipboard.Contents); + else Assert.NotEqual (clipText, Clipboard.Contents); } @@ -209,7 +209,9 @@ else Assert.NotEqual (clipText, Clipboard.Contents); Application.Run (); - if (!failed) Assert.Equal (clipText, getClipText); + if (!failed) { + Assert.Equal (clipText, getClipText); + } } [Fact, AutoInitShutdown (useFakeClipboard: false)] @@ -265,7 +267,7 @@ else Assert.NotEqual (clipText, Clipboard.Contents); Application.Run (); - if (!failed) Assert.Equal (clipText, clipReadText.TrimEnd ()); + if (!failed) Assert.Equal (clipText, clipReadText.TrimEnd ()); } diff --git a/UnitTests/UnitTests.csproj b/UnitTests/UnitTests.csproj index c2fe896f9..32a042255 100644 --- a/UnitTests/UnitTests.csproj +++ b/UnitTests/UnitTests.csproj @@ -21,8 +21,8 @@ TRACE;DEBUG_IDISPOSABLE - - + + @@ -56,5 +56,6 @@ False + C:\Users\charlie\s\gui-cs\Terminal.Gui\UnitTests\bin\Debug\net7.0\fine-code-coverage\coverage-tool-output\UnitTests-fcc-mscodecoverage-generated.runsettings \ No newline at end of file