Skip to content

Commit 3338d4a

Browse files
authored
Update multiple.cpp (#98685)
1 parent 11bdd1b commit 3338d4a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/tests/profiler/native/multiple/multiple.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ HRESULT MultiplyLoaded::InitializeCommon(IUnknown* pICorProfilerInfoUnk)
2424
Profiler::Initialize(pICorProfilerInfoUnk);
2525

2626
HRESULT hr = S_OK;
27-
printf("Setting exception mask\n");
2827
if (FAILED(hr = pCorProfilerInfo->SetEventMask2(COR_PRF_MONITOR_EXCEPTIONS, 0)))
2928
{
3029
_failures++;
@@ -37,11 +36,13 @@ HRESULT MultiplyLoaded::InitializeCommon(IUnknown* pICorProfilerInfoUnk)
3736

3837
HRESULT MultiplyLoaded::Initialize(IUnknown* pICorProfilerInfoUnk)
3938
{
39+
printf("MultiplyLoaded::Initialize\n");
4040
return InitializeCommon(pICorProfilerInfoUnk);
4141
}
4242

4343
HRESULT MultiplyLoaded::InitializeForAttach(IUnknown* pICorProfilerInfoUnk, void* pvClientData, UINT cbClientData)
4444
{
45+
printf("MultiplyLoaded::InitializeForAttach\n");
4546
return InitializeCommon(pICorProfilerInfoUnk);
4647
}
4748

@@ -56,8 +57,8 @@ HRESULT MultiplyLoaded::ProfilerDetachSucceeded()
5657
++_detachCount;
5758

5859
printf("ProfilerDetachSucceeded _detachCount=%d\n", _detachCount.load());
59-
if (_detachCount == (MAX_PROFILERS - 1)
60-
&& _exceptionThrownSeenCount >= (MAX_PROFILERS - 1)
60+
if (_detachCount == MAX_PROFILERS
61+
&& _exceptionThrownSeenCount >= MAX_PROFILERS
6162
&& _failures == 0)
6263
{
6364
printf("PROFILER TEST PASSES\n");
@@ -69,9 +70,7 @@ HRESULT MultiplyLoaded::ProfilerDetachSucceeded()
6970

7071
HRESULT MultiplyLoaded::ExceptionThrown(ObjectID thrownObjectId)
7172
{
72-
int seen = _exceptionThrownSeenCount++;
73-
74-
printf("MultiplyLoaded::ExceptionThrown, number seen = %d\n", seen);
73+
printf("MultiplyLoaded::ExceptionThrown, number seen = %d\n", ++_exceptionThrownSeenCount);
7574

7675
thread detachThread([&]()
7776
{

0 commit comments

Comments
 (0)