Fix and reenable TestUserCredentialsPropertiesOnWindows #46083
Fix and reenable TestUserCredentialsPropertiesOnWindows #46083adamsitnik merged 7 commits intodotnet:masterfrom
Conversation
…denied exception)
|
Tagging subscribers to this area: @eiriktsarpalis Issue DetailsRemoval of the user via The user might have been missing rights to read and execute Now it works as expected:
|
eiriktsarpalis
left a comment
There was a problem hiding this comment.
If CI is happy I'm happy.
|
/azp run runtime-libraries outerloop |
|
No pipelines are associated with this pull request. |
|
/azp list |
|
/azp run runtime-libraries-coreclr outerloop-windows |
|
Azure Pipelines successfully started running 1 pipeline(s). |
So here we go again /azp run runtime-libraries-coreclr outerloop-windows |
|
/azp run runtime-libraries-coreclr outerloop-windows |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
The CI has failed with a very interesting error: edit: because 'netapi32.dll' is not available on nano |
# Conflicts: # src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs
|
/azp run runtime-libraries-coreclr outerloop-windows |
|
Azure Pipelines successfully started running 1 pipeline(s). |
The CI is happy and so am I ;) |

Removal of the user via
Interop.NetUserDelwas never working because it was missingCharSet = CharSet.Unicode. I've fixed that and changed the test to:NERR_UserNotFound) if the removal of the account failedThe user might have been missing rights to read and execute
dotnet.exe(for example whenbuild.cmdwas executed from Admin PSW) and in that case the test was throwingAccess deniedfromProcess.Start. I've changed the test to always add the permission to read and execute before running the.exeNow it works as expected:
Fixes #18978