Skip to content

Various BenchmarksGame tests failing due to inability to resolve a manifest resource stream #118475

@tannergooding

Description

@tannergooding

Various tests under JIT/Performance/CodeQuality/BenchmarksGame including k-nucleotide-9, k-nucleotide-1, reverse-complement-1, regex-reduce-1, and regex-redux-5 are failing as the manifest resource stream is returning null.

For example, regex-reduce-5 uses the following and the result of GetInputStream is null:

class TestHarnessHelpers
{
    public readonly int ExpectedLength;
    private readonly string resourceName;

    public TestHarnessHelpers(bool bigInput, [System.Runtime.CompilerServices.CallerFilePath] string csFileName = "")
    {
        if (bigInput)
        {
            ExpectedLength = 136381;
            resourceName = $"{Path.GetFileNameWithoutExtension(csFileName)}.regexdna-input25000.txt";
        }
        else
        {
            ExpectedLength = 152;
            resourceName = $"{Path.GetFileNameWithoutExtension(csFileName)}.regexdna-input25.txt";
        }
    }

    public Stream GetInputStream()
    {
        var assembly = typeof(TestHarnessHelpers).GetTypeInfo().Assembly;
        return assembly.GetManifestResourceStream(resourceName);
    }
}

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions