diff options
Diffstat (limited to 'cpp')
-rwxr-xr-x | cpp/test/Ice/operations/TestAMDI.cpp | 4 | ||||
-rwxr-xr-x | cpp/test/Ice/operations/TestI.cpp | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/cpp/test/Ice/operations/TestAMDI.cpp b/cpp/test/Ice/operations/TestAMDI.cpp index ae0ee6ab716..4f7e4312c5a 100755 --- a/cpp/test/Ice/operations/TestAMDI.cpp +++ b/cpp/test/Ice/operations/TestAMDI.cpp @@ -84,8 +84,10 @@ MyDerivedClassI::delay_async(const Test::AMD_MyClass_delayPtr& cb, Ice::Int ms, } void -MyDerivedClassI::opVoid_async(const Test::AMD_MyClass_opVoidPtr& cb, const Ice::Current&) +MyDerivedClassI::opVoid_async(const Test::AMD_MyClass_opVoidPtr& cb, const Ice::Current& current) { + test(current.mode == Ice::Normal); + IceUtil::Mutex::Lock sync(_opVoidMutex); if(_opVoidThread) { diff --git a/cpp/test/Ice/operations/TestI.cpp b/cpp/test/Ice/operations/TestI.cpp index 84c8f3695d0..70723ee2b16 100755 --- a/cpp/test/Ice/operations/TestI.cpp +++ b/cpp/test/Ice/operations/TestI.cpp @@ -55,8 +55,9 @@ MyDerivedClassI::delay(Ice::Int ms, const Ice::Current& current) } void -MyDerivedClassI::opVoid(const Ice::Current&) +MyDerivedClassI::opVoid(const Ice::Current& current) { + test(current.mode == Ice::Normal); } Ice::Byte |