Skip to content

[wasm][tests][aot] Common.Tests #50955

Closed

Description

@radical

AOT test failures in Common.Tests

[19:34:10] fail: [FAIL] Tests.System.Net.MultiArrayBufferTests.CopyFromRepeatedlyAndCopyToRepeatedly_Success
[19:34:10] info: Assert.True() Failure
[19:34:10] info: Expected: True
[19:34:10] info: Actual:   False
[19:34:10] info: 
[19:34:11] fail: [FAIL] Tests.System.Net.MultiArrayBufferTests.CopyFromRepeatedlyAndCopyToRepeatedly_LargeCopies_Success
[19:34:11] info: Assert.True() Failure
[19:34:11] info: Expected: True
[19:34:11] info: Actual:   False

Activity

  1. added
    arch-wasm
    wasm-aot-test
    on Apr 8, 2021
  2. ghost added
    untriaged
    on Apr 8, 2021
  3. added this to the 6.0.0 milestone on Apr 9, 2021
  4. self-assigned this
    on May 5, 2021
  5. vargaz commented on May 5, 2021

    @vargaz
    Contributor

    Testcase:

    using System;
    
    public class Test
    {
        public void CopyTo(Span<byte> destination) {
            destination = destination.Slice(7);
        }
    
        public void CopyTo2(Span<byte> destination) {
            Console.WriteLine (destination.Length);
        }
    
        public static int Main(string[] args)
        {
            var slice = new Test ();
            Span<byte> destination = new byte[7].AsSpan();
            slice.CopyTo(destination);
            slice.CopyTo2(destination);
            return 0;
        }
    }
    

    This prints 7 with non-aot, and 0 with aot.

  6. vargaz commented on May 5, 2021

    @vargaz
    Contributor

    Need this in the .csproj to reproduce:

      <ItemGroup>
        <MonoAOTCompilerDefaultProcessArguments Include="-O=-inline"/>
      </ItemGroup>
    
  7. ghost added
    in-pr
    on May 5, 2021
  8. ghost removed
    in-pr
    on May 5, 2021
  9. ghost locked as resolved and limited conversation to collaborators on Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-Codegen-AOT-monountriagedwasm-aot-test

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions