You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ROS<T>.LastIndexOf(ROS<T> value) returns wrong index when 'value' is empty #13382
The behavior of ROS<T>.LastIndexOf differs based on whether the char-specific overload is called or whether the generic T overload is called, as shown above. We should make the behavior consistent.
(To be fair, all of these APIs should be returning "5", not "4". I'll file a separate bug for that.)
I'm willing to take this issue. I have cloned the repo and followed the building on Windows instructions everything builds fine. I guess the fix should be in CompareInfo.cs in System.Private.Corelib project, right?
Can you please guide me on how I can test after making changes?
Build corefx locally using the custom coreclr you've built. (build -build -buildtests /p:coreclroverridepath=c:\whatever)
Run the corefx tests locally (build -test /p:coreclroverridepath=c:\whatever)
It's likely that you'll see corefx test failures, as the tests probably test the incorrect behavior. If this occurs make the changes to your local corefx repo, then rebuild and rerun the tests.
Activity
hannan-sultan commentedon Sep 21, 2019
I'm willing to take this issue. I have cloned the repo and followed the building on Windows instructions everything builds fine. I guess the fix should be in
CompareInfo.csinSystem.Private.Corelibproject, right?Can you please guide me on how I can test after making changes?
GrabYourPitchforks commentedon Sep 27, 2019
Hi @hannan-sultan! Check https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/developer-guide.md#testing-with-private-coreclr-bits for complete instructions. But in a nutshell, what this involves is essentially four steps:
build -build -buildtests /p:coreclroverridepath=c:\whatever)build -test /p:coreclroverridepath=c:\whatever)It's likely that you'll see corefx test failures, as the tests probably test the incorrect behavior. If this occurs make the changes to your local corefx repo, then rebuild and rerun the tests.