Skip to content
Commit 2bfd4d1f authored by Namhyung Kim's avatar Namhyung Kim Committed by Shuah Khan
Browse files

ftracetest: Do not use usleep directly

The usleep is only provided on distros from Redhat so running ftracetest
on other distro resulted in failures due to the missing usleep.

The reason of using [u]sleep in the test was to generate (scheduler)
events.  It can be done various ways like this:

yield() {  ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1; }

For more information to the history of this patch, please refer to:

Link: http://lkml.kernel.org/r/1427329943-16896-1-git-send-email-namhyung@kernel.org



Reported-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Reported-by: default avatarDave Jones <davej@codemonkey.org.uk>
Reported-by: default avatarLuis Henriques <luis.henriques@canonical.com>
Suggested-by: default avatarPádraig Brady <P@draigBrady.com>
Acked-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Acked-by: default avatarMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent 6886f41d
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