From c9c2bddcb83d7f93f104f92b51676dca84e36951 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Mon, 14 Nov 2011 17:17:38 +0400 Subject: [PATCH] test: Update shared mem test Signed-off-by: Cyrill Gorcunov --- test/asmem.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/asmem.c b/test/asmem.c index 4a10bfc57..1819fe225 100644 --- a/test/asmem.c +++ b/test/asmem.c @@ -38,14 +38,16 @@ int main(int argc, char *argv[]) } if (pid == 0) { + int cnt = 0; while(1) { printf("%d: shmem '%s'\n", getpid(), (char *)map); + sprintf(map, "shared-mem-%d", cnt++); sleep(5); } } else { while(1) { printf("%d: shmem '%s'\n", getpid(), (char *)map); - sleep(5); + sleep(3); } }