From patchwork Thu Apr 19 19:55:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 10351499 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9D79660365 for ; Thu, 19 Apr 2018 19:55:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FEA8284C9 for ; Thu, 19 Apr 2018 19:55:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84C1D28517; Thu, 19 Apr 2018 19:55:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18E15284C9 for ; Thu, 19 Apr 2018 19:55:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753484AbeDSTzc (ORCPT ); Thu, 19 Apr 2018 15:55:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:38430 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752558AbeDSTza (ORCPT ); Thu, 19 Apr 2018 15:55:30 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 1831CAF08; Thu, 19 Apr 2018 19:55:30 +0000 (UTC) From: Petr Vorel To: ltp@lists.linux.it Cc: Petr Vorel , Mimi Zohar , linux-integrity@vger.kernel.org Subject: [RFC PATCH v3 07/10] ima/ima_mmap: Reduce sleep + log it Date: Thu, 19 Apr 2018 21:55:00 +0200 Message-Id: <20180419195503.7194-8-pvorel@suse.cz> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180419195503.7194-1-pvorel@suse.cz> References: <20180419195503.7194-1-pvorel@suse.cz> Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Sleep reduced to 3s (30s is way too much). Signed-off-by: Petr Vorel --- testcases/kernel/security/integrity/ima/src/ima_mmap.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);