From patchwork Tue Apr 5 11:33:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Shevchenko Andriy (EXT-Teleca/Helsinki)" X-Patchwork-Id: 89821 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D216BB6F89 for ; Tue, 5 Apr 2011 21:34:32 +1000 (EST) Received: from canuck.infradead.org ([2001:4978:20e::1]) by bombadil.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q74Uw-0001xG-7C; Tue, 05 Apr 2011 11:32:38 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1Q74Uu-0002db-K6; Tue, 05 Apr 2011 11:32:36 +0000 Received: from smtp.nokia.com ([147.243.128.24] helo=mgw-da01.nokia.com) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q74Uo-0002d6-8j for linux-mtd@lists.infradead.org; Tue, 05 Apr 2011 11:32:34 +0000 Received: from nokia.com (localhost [127.0.0.1]) by mgw-da01.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id p35BWQ86010158 for ; Tue, 5 Apr 2011 14:32:26 +0300 Received: from fs-test.research.nokia.com ([esdhcp05135.research.nokia.com [172.21.51.35]]) by mgw-da01.nokia.com with ESMTP id p35BWIrH009986 ; Tue, 5 Apr 2011 14:32:20 +0300 Received: by fs-test.research.nokia.com (Postfix, from userid 1001) id C0BCDCFD41; Tue, 5 Apr 2011 14:33:12 +0300 (EEST) From: Andy Shevchenko To: Artem Bityutskiy , linux-mtd@lists.infradead.org Subject: [PATCHv1 1/3] tests: make jittertest buildable Date: Tue, 5 Apr 2011 14:33:08 +0300 Message-Id: <38fa03e74a299568e73f69b03ffcacd5ee38b62b.1302002802.git.ext-andriy.shevchenko@nokia.com> X-Mailer: git-send-email 1.6.3.3 X-Nokia-AV: Clean X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110405_073230_469068_48DA6A6D X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 TVD_RCVD_SPACE_BRACKET TVD_RCVD_SPACE_BRACKET -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [147.243.128.24 listed in list.dnswl.org] Cc: Andy Shevchenko X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Signed-off-by: Andy Shevchenko --- tests/jittertest/JitterTest.c | 6 +++--- tests/jittertest/Makefile | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/jittertest/JitterTest.c b/tests/jittertest/JitterTest.c index 13c64d9..fcf8e0d 100644 --- a/tests/jittertest/JitterTest.c +++ b/tests/jittertest/JitterTest.c @@ -292,7 +292,7 @@ int main( } /*------------------------- Initializations --------------------------*/ - if((Fd1 = open(OutFileName, O_RDWR|O_CREAT|O_SYNC)) <= 0) + if((Fd1 = open(OutFileName, O_RDWR|O_CREAT|O_SYNC, S_IRWXU)) <= 0) { perror("Cannot open outfile for write:"); exit(1); @@ -304,7 +304,7 @@ int main( if(DoRead) { - if((Fd2 = open(ReadFile, O_RDWR|O_CREAT|O_SYNC|O_TRUNC)) <= 0) + if((Fd2 = open(ReadFile, O_RDWR|O_CREAT|O_SYNC|O_TRUNC, S_IRWXU)) <= 0) { perror("cannot open read file:"); exit(1); @@ -459,7 +459,7 @@ void doGrabKProfile(int jitterusec, char *fileName) int readBytes; char readBuf[4096]; - if((fdSnapshot = open(fileName, O_WRONLY | O_CREAT)) <= 0) + if((fdSnapshot = open(fileName, O_WRONLY | O_CREAT, S_IRWXU)) <= 0) { fprintf(stderr, "Could not open file %s.\n", fileName); perror("Error:"); diff --git a/tests/jittertest/Makefile b/tests/jittertest/Makefile index 2f11329..0209c63 100644 --- a/tests/jittertest/Makefile +++ b/tests/jittertest/Makefile @@ -1,6 +1,6 @@ CC=gcc # uncomment following for performance -CCFLAGS=-O3 -Wall -m486 -fomit-frame-pointer +CCFLAGS=-O3 -Wall -fomit-frame-pointer # uncomment following for debugging. Uncomment either this or the one above. Not both. # CCFLAGS=-Wall -g