RaviY,
I'm still after this: trying to run "-test 1 1" sequentially and
produce repeatable output. I guess, the main problem is the multi-
threaded nature of the media framework.
1) In scl/oscl/osclproc/src/oscl_thread.h I have turned all the
priorities equal :
enum OsclThreadPriority
{
ThreadPriorityLowest=1
, ThreadPriorityLow=1
, ThreadPriorityBelowNormal=1
, ThreadPriorityNormal=1
, ThreadPriorityAboveNormal=1
, ThreadPriorityHighest=1
, ThreadPriorityTimeCritical=1
};
2) Then in ./oscl/oscl/osclbase/src/pvlogger.h I have forced a
"fflush(stdout); fflush(stderr);" in every LOG macro; see this
example:
#define _PVLOGGER_LOGMSG(LOGGER, LEVEL, MESSAGE)\
{\
if (LOGGER)\
{\
if (LOGGER->IsActive(LEVEL))\
{\
LOGGER->LogMsgString MESSAGE;\
}\
}\
fflush(stdout); fflush(stderr);\
}
I still have some of the thread's output coming in a different order
when run at different times.
I was wondering if there anything else I could do to force the code to
be perfectly sequential?
Thank you for any hint
--
iod
On May 11, 9:28 am, iod <[email protected]> wrote:
> 1. How to exclude Time, Date, Memory Addresses and non-repeatable
> infos from the output?
> 2. How to make the internal behavior of the framework, sequential?
>
> I guess those are the two conditions to build a regression test that
> does not require human intervention .
> Thank you for all
> --iod
>
> On May 11, 9:15 am, RaviY <[email protected]> wrote:
>
>
>
> > "-logfile myfile" is not a valid option. "-logfile" creates
> > pvlogger.out that dumps the logs.
>
> > -Ravi
>
> > On May 10, 10:53 am,iod<[email protected]> wrote:
>
> > > Hi Community,
> > > I'm trying to regression-test opencore's pvplayer_engine_test
> > > executable; that is, running some of the available tests and
> > > outputting the maximum amount of reproduceable information (Avoiding
> > > Time and Memory Addresses in the output.) so that I can "diff" the
> > > output of two runs. The goal is to automatically check that nothing
> > > was broken from one run to the other.
>
> > > 1. What are the best available options for that purpose?
> > > 2. I need to output the result to a file and "-logfile myfile" does
> > > not seem to work: "myfile" does not get created. Am I using the wrong
> > > syntax?
>
> > > Thank you for helping
> > > --
> > >iod
>
> > > --
> > > unsubscribe: [email protected]
> > > website:http://groups.google.com/group/android-porting
>
> > --
> > unsubscribe: [email protected]
> > website:http://groups.google.com/group/android-porting
>
> --
> unsubscribe: [email protected]
> website:http://groups.google.com/group/android-porting
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting