This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migration of some additional legacy port tests (#15867)
* Migrated Open tests * Increase flexibility of serial port / null modem detection * Improve cleanup after test failure * Migrate Open_Stress from legacy format * Avoid Console.WriteLine calls * Further progress on migrating legacy SerialPort tests There are lots of files touched which are not yet in the build, but have had relatively simple replacement operations run across them in preparation for the manual conversion. * Prevent parallel execution of tests * Migration of more SerialPort tests * Complete first pass through migrating Legacy/SerialPort This is everything which fits pattern of standard tests - not some special manual / regression tests. This runs with failures but without serious problems on a machine with a single real serial port, with or without a data-loopback connected. * Removed SlashSlash tests * Add timeouts to various potential hang points * Some tidying in PortHelper, etc * Make DiscardOutBuffer tests work correctly * More assiduous disposal of SerialPort objects, fix some bogus test failures * Added ActiveIssue attributes on tests which fail on the CI * Correct / add ActiveIssue numbers * Tidying
- Loading branch information
1 parent
4556962
commit c96871e
Showing
82 changed files
with
11,433 additions
and
24,630 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using Xunit; | ||
|
||
// We don't want to run the tests in parallel because they need exclusive access to serial ports | ||
[assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly, DisableTestParallelization = true)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.