Message ID | 20180419195503.7194-8-pvorel@suse.cz (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi! Proper synchronization between the processes wouldn't harm here. FIY: we do have checkpoints for the shell library that can be used both from C sources as well as shell. But given how big this patchset is at this point, it can wait for v2 I guess.
diff --git a/testcases/kernel/security/integrity/ima/src/ima_mmap.c b/testcases/kernel/security/integrity/ima/src/ima_mmap.c index 335f8525c..9045e79a0 100644 --- a/testcases/kernel/security/integrity/ima/src/ima_mmap.c +++ b/testcases/kernel/security/integrity/ima/src/ima_mmap.c @@ -25,6 +25,8 @@ char *TCID = "ima_mmap"; int TST_TOTAL = 1; +#define SLEEP_AFTER_CLOSE 3 + int main(int argc, char *argv[]) { int fd; @@ -47,7 +49,10 @@ int main(int argc, char *argv[]) return (-1); } close(fd); - sleep(30); + + tst_resm(TINFO, "sleep %ds", SLEEP_AFTER_CLOSE); + sleep(SLEEP_AFTER_CLOSE); + if (munmap(file, 1024) < 0) { perror("unmap"); return (-1);
Sleep reduced to 3s (30s is way too much). Signed-off-by: Petr Vorel <pvorel@suse.cz> --- testcases/kernel/security/integrity/ima/src/ima_mmap.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)