Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent dump file name between crash dump and hang dump #5036

Open
Youssef1313 opened this issue Feb 17, 2025 · 3 comments
Open

Inconsistent dump file name between crash dump and hang dump #5036

Youssef1313 opened this issue Feb 17, 2025 · 3 comments

Comments

@Youssef1313
Copy link
Member

: Path.Combine(_configuration.GetTestResultDirectory(), $"{Path.GetFileName(_testApplicationModuleInfo.GetCurrentTestApplicationFullPath())}_%p_crash.dmp");

_dumpFileNamePattern = $"{Path.GetFileNameWithoutExtension(testApplicationModuleInfo.GetCurrentTestApplicationFullPath())}_%p_hang.dmp";

One is using Path.GetFileName while the other is using Path.GetFileNameWithoutExtension

@Evangelink
Copy link
Member

Let's refactor in a helper class that we will share between the 2 so we are sure a fix is fixing both

@Evangelink Evangelink added this to the MSTest 3.8.1 / MTP 1.6.1 milestone Feb 17, 2025
@Youssef1313
Copy link
Member Author

@Evangelink It's technically breaking to change the name I think. Maybe a script out there is relying on a file name being in a specific form.

@Evangelink
Copy link
Member

Moving to 3.9, this could be seen as a breaking change but this is actually a bug in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants