Skip to content
Commit f0abbfd8 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman
Browse files

selftests/powerpc: Add test for strlen()



This patch adds a test for strlen()

string.c contains a copy of strlen() from lib/string.c

The test first tests the correctness of strlen() by comparing
the result with libc strlen(). It tests all cases of alignment.

It them tests the duration of an aligned strlen() on a 4 bytes string,
on a 16 bytes string and on a 256 bytes string.

Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
[mpe: Drop change log from copy of string.c]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 1bb07b59
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment