Skip to content
Commit 3ca962eb authored by Daniel Leung's avatar Daniel Leung Committed by Benjamin Cabé
Browse files

tests: mem_protect/syscalls: multiple buffers for stress test



This modifies string_copy() to have an addition ID as function
argument so that it can copy into different buffers during
the multi-threaded stress test, instead of all threads writing
into the same buffer. This is to prevent a situation where
one thread writes incorrect data but being overwritten by
another thread with correct data, thus making the following
strcmp() passing for both threads. Logically this should never
happen since the same function is being called which should
give same result, but it is simply to test for weird
situations.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 89f8f5bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment