[LTP] [RFC PATCH] read_all: give more time to wait children finish read action

Cyril Hrubis chrubis@suse.cz
Mon Apr 9 15:00:12 CEST 2018


Hi!
> > Maybe we need TST_RETRY_ON_NONZERO() macro that would build the retry
> > loop around a function passed as a paramter or something like that.
> 
> Or TST_RETRY_LOOP, TST_RETRY_WHILE or
> TST_RETRY_WITH_EXPONENTIAL_BACKOFF. :-)
> 
> Maybe it should not be a magic macro though, but just an inline function
> which you call in the body of a loop which performs the sleep based on a
> couple of parameters. I suppose it depends on how nice one can make the
> macro.

Well, yes. But I would go for simple sleep for the sake of fixing this
test for now, then replace it with something better once we settle on on
the actual implementation.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list