Fix unittest `LPSTRTest` (dotnet/coreclr#11096)
authorHanjoung Lee <waterets@gmail.com>
Thu, 27 Apr 2017 16:39:47 +0000 (01:39 +0900)
committerYi Zhang (CLR) <yizhang82@users.noreply.github.com>
Thu, 27 Apr 2017 16:39:47 +0000 (09:39 -0700)
commit6876032b7b21d4e4281fccbe02d0c896e0cdb054
tree8a9237b11d8d7eb199a99b524ac2b9460ccd58e3
parent6d490f12e3b8dce2e88ae639ce976a2d189bd078
Fix unittest `LPSTRTest` (dotnet/coreclr#11096)

* Fix unittest `LPSTRTest`

The test case Interop.StringMarshalling.LPSTR.LPSTRTest
always returned exit code 100(pass) even if it actually failed.
This implements `ExitTest()` in the same manner with `LPTSTRTest`.

* Fix unittest `LPSTRTest` native

Commit migrated from https://github.com/dotnet/coreclr/commit/8291db8bdb49768a7620a98865ad642d639c9c87
src/coreclr/tests/src/Interop/StringMarshalling/LPSTR/LPSTRTest.cs
src/coreclr/tests/src/Interop/StringMarshalling/LPSTR/LPSTRTestNative.cpp