Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@tijoytom-zz
Copy link
Contributor

Fix the TestUtil.ThisConfigFileName so it works on uap-aot and disable the rest of the tests.
@JeremyKuhne

}

[Fact]
[SkipOnTargetFramework(TargetFrameworkMonikers.UapAot,"Exception messages are different")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you just take out the Assert.Equal(expectedException.Message, result.Message) in both cases instead? Then the rest of the test runs.

Although, i thought that the exception message would be blank for both cases, so it would be equal anyway,.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally we don't look at exception messages so it's better to just fix the test that way

@danmoseley
Copy link
Member

Tests are failing

Expected: ···nit.console.netcore.config\nActual:   ···nit.console.netcore.exe.config\n 

{
var exe = Path.GetFileName(ThisApplicationPath);
return exe + ".config";
return Assembly.GetEntryAssembly().GetName().Name + ".config";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be + ".exe.config" to make the tests pass

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did they pass locally?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to see why ThisApplicationPath is different on AOT and core.Changing it to ".exe.config" fails in AOT.

@tijoytom-zz
Copy link
Contributor Author

Apparently netcore do not like the change , need to re-work on this

@tijoytom-zz
Copy link
Contributor Author

@dotnet-bot test Innerloop netfx Windows_NT Release x64 Build and Test

@tijoytom-zz tijoytom-zz merged commit a79e39f into dotnet:master Jun 16, 2017
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Fix the remaining System.ConfigManager tests.

Commit migrated from dotnet/corefx@a79e39f
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants