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

String test refresh#25948

Merged
jkoritzinsky merged 11 commits into
dotnet:masterfrom
jkoritzinsky:string-test-refresh
Aug 8, 2019
Merged

String test refresh#25948
jkoritzinsky merged 11 commits into
dotnet:masterfrom
jkoritzinsky:string-test-refresh

Conversation

@jkoritzinsky
Copy link
Copy Markdown
Member

Rewrite the string tests (excluding UTF8 and VBByRefStr) to share most of their managed and native implementations to reduce duplicated code. The managed code is now the only source of truth for all tests other than the MatchFunctionName* tests, which use the function name as the source of truth.

@jkoritzinsky jkoritzinsky added area-Interop test enhancement Improvements of test source code labels Jul 31, 2019
@jkoritzinsky jkoritzinsky added this to the 5.0 milestone Jul 31, 2019
Comment thread tests/src/Interop/StringMarshalling/Native/StringMarshalingNative.h
Comment thread tests/src/Interop/StringMarshalling/Native/StringMarshalingNative.h Outdated
Comment thread tests/src/Interop/StringMarshalling/Native/StringMarshalingNative.h Outdated
@jkoritzinsky jkoritzinsky merged commit ef1b0f7 into dotnet:master Aug 8, 2019
@jkoritzinsky jkoritzinsky deleted the string-test-refresh branch August 8, 2019 15:12
@mikedn
Copy link
Copy Markdown

mikedn commented Aug 24, 2019

Hmm, how did LPTStrTestNative.cpp ended up in the root of the repository?

picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Rewrite all LP*STR/BSTR/AnsiBSTR parameter/return type tests.

* Add string-field-in-struct tests.

* Add tests for UnmanagedType.ByValTStr.

* Fix casing in name.

* PR Feedback.

* Fix AnsiBStr test.

* Remove redundant cast.

* 2-phase lookup compliance. SysFreeString -> CoreClrBStrFree.

* Remove extra using

* Remove extra space

* Calling conventions....


Commit migrated from dotnet/coreclr@ef1b0f7
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Interop test enhancement Improvements of test source code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants