Commit f2b5b98a authored by Pavel Vainerman's avatar Pavel Vainerman

(codegen): переписал функцию waitSM().

parent f7bc3fac
......@@ -532,7 +532,8 @@ void <xsl:value-of select="$CLASSNAME"/>_SK::waitSM( int wait_msec, ObjectId _te
&lt;&lt; wait_msec &lt;&lt; " msec"
&lt;&lt; " testID=" &lt;&lt; _testID &lt;&lt; endl;
if( !ui->waitWorking(_testID,wait_msec) )
// waitReady можно использовать т.к. датчик это по сути IONotifyController
if( !ui-&gt;waitReady(_testID,wait_msec) )
{
ostringstream err;
err &lt;&lt; myname
......@@ -547,10 +548,7 @@ void <xsl:value-of select="$CLASSNAME"/>_SK::waitSM( int wait_msec, ObjectId _te
// throw SystemError(err.str());
}
<xsl:if test="normalize-space($TESTMODE)!=''">
if( idTestMode_S != DefaultObjectId )
{
if( !ui->waitWorking(idTestMode_S,wait_msec) )
if( !ui->waitWorking(_testID,wait_msec) )
{
ostringstream err;
err &lt;&lt; myname
......@@ -563,8 +561,6 @@ void <xsl:value-of select="$CLASSNAME"/>_SK::waitSM( int wait_msec, ObjectId _te
raise(SIGTERM);
// throw SystemError(err.str());
}
}
</xsl:if>
}
// ----------------------------------------------------------------------------
std::string <xsl:value-of select="$CLASSNAME"/>_SK::help()
......
......@@ -13,6 +13,8 @@ GENERATED=TestGen_SK.h TestGen_SK.cc TestGen-main.cc
GENERATED2=TestGenAlone_SK.h TestGenAlone_SK.cc TestGenAlone-main.cc
GENUOBJ=UObject_SK.cc UObject_SK.h
BUILT_SOURCES=$(GENERATED) $(GENERATED2) $(GENOBJ)
TestGen-main.cc TestGen_SK.cc TestGen_SK.h: ../@PACKAGE@-codegen testgen.src.xml ../*.xsl
../@PACKAGE@-codegen -l $(top_builddir)/Utilities/codegen --gen-varmap --local-include -n TestGen testgen.src.xml
......
......@@ -3,7 +3,7 @@
ulimit -Sc 1000000
uniset2-start.sh -f ./test --name TestProc --confile test.xml --ulog-add-levels warn,crit \
--sm-ready-timeout 5000 --test-run-logserver --test-log-add-levels any
--test-sm-ready-timeout 15000 --test-run-logserver --test-log-add-levels any $*
#info,warn,crit,system,level9 > 1.log
#--c-filter-field cfilter --c-filter-value test1 --s-filter-field io --s-filter-value 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment