[#57956] Fix creating Range, remove `Range.Empty`, add `.By`/`.To` tests Range in `ShouldHandleManyMultiplexedMultiDestinationInterrupts` for `sender` had to be fixed cause it overlaps with `receiver` which is now properly identified. Previously it worked because both used range equal to `Range.Empty` which was a special case in `Range.Intersects` used in `SystemBus:RegisterInner` that made the `Intersects` result invalid.
diff --git a/src/Infrastructure b/src/Infrastructure index e72d6fe..ef2a76f 160000 --- a/src/Infrastructure +++ b/src/Infrastructure
@@ -1 +1 @@ -Subproject commit e72d6fe2b39490737b7057828541b7a14a4a48c5 +Subproject commit ef2a76fdadbd34cb053a6d23c43465c8727f5c66
diff --git a/tests/unit-tests/RenodeTests/PlatformDescription/MergeAndCreationTests.cs b/tests/unit-tests/RenodeTests/PlatformDescription/MergeAndCreationTests.cs index 0e04b90..fc6b965 100644 --- a/tests/unit-tests/RenodeTests/PlatformDescription/MergeAndCreationTests.cs +++ b/tests/unit-tests/RenodeTests/PlatformDescription/MergeAndCreationTests.cs
@@ -1,5 +1,5 @@ // -// Copyright (c) 2010-2023 Antmicro +// Copyright (c) 2010-2024 Antmicro // // This file is licensed under the MIT License. // Full license text is available in 'licenses/MIT.txt'. @@ -547,7 +547,7 @@ public void ShouldHandleManyMultiplexedMultiDestinationInterrupts() { var source = @" -sender: Antmicro.Renode.UnitTests.Mocks.MockGPIOByNumberConnectorPeripheral @ sysbus <0, 1> +sender: Antmicro.Renode.UnitTests.Mocks.MockGPIOByNumberConnectorPeripheral @ sysbus <3, 4> gpios: 2 [0, Irq] -> receiver@[1-2] | receiver2@[3-4] | receiver3@[5-6] receiver: Antmicro.Renode.UnitTests.Mocks.MockReceiver @ sysbus <0, 1>