All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv1 1/3] tests: make jittertest buildable
@ 2011-04-05 11:33 Andy Shevchenko
  2011-04-05 11:33 ` [PATCHv1 2/3] tests: build tests by default Andy Shevchenko
                   ` (2 more replies)
  0 siblings, 3 replies; 29+ messages in thread
From: Andy Shevchenko @ 2011-04-05 11:33 UTC (permalink / raw)
  To: Artem Bityutskiy, linux-mtd; +Cc: Andy Shevchenko

Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>
---
 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
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2011-04-07 13:47 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-05 11:33 [PATCHv1 1/3] tests: make jittertest buildable Andy Shevchenko
2011-04-05 11:33 ` [PATCHv1 2/3] tests: build tests by default Andy Shevchenko
2011-04-05 12:44   ` Josh Boyer
2011-04-05 12:45     ` Artem Bityutskiy
2011-04-05 12:57     ` Florian Fainelli
2011-04-05 15:03     ` [PATCHv2] tests: introduce new target tests in Makefile Andy Shevchenko
2011-04-06  8:53       ` Artem Bityutskiy
2011-04-06  9:04         ` Florian Fainelli
2011-04-07 10:44       ` Artem Bityutskiy
2011-04-07 13:10         ` Andy Shevchenko
2011-04-07 13:10           ` Artem Bityutskiy
2011-04-07 13:27             ` Andy Shevchenko
2011-04-07 13:44               ` Artem Bityutskiy
2011-04-05 11:33 ` [PATCHv1 3/3] tests: fix compiler warnings Andy Shevchenko
2011-04-05 12:52   ` Artem Bityutskiy
2011-04-05 13:08     ` Andy Shevchenko
2011-04-05 13:55     ` [PATCHv1 1/5] tests: checkfs: " Andy Shevchenko
2011-04-05 13:55       ` [PATCHv1 2/5] tests: checkfs: fix linker warnings Andy Shevchenko
2011-04-05 14:15         ` Artem Bityutskiy
2011-04-05 13:55       ` [PATCHv1 3/5] tests: fs-tests: check return value of functions Andy Shevchenko
2011-04-05 14:17         ` Artem Bityutskiy
2011-04-05 13:55       ` [PATCHv1 4/5] tests: jittertest: fix set of compiler warnings Andy Shevchenko
2011-04-05 14:20         ` Artem Bityutskiy
2011-04-05 14:32           ` [PATCHv2] " Andy Shevchenko
2011-04-05 14:39             ` Artem Bityutskiy
2011-04-05 13:55       ` [PATCHv1 5/5] tests: ubi-tests: seed_random_generator() was used w/o prototype Andy Shevchenko
2011-04-05 14:22         ` Artem Bityutskiy
2011-04-05 14:08       ` [PATCHv1 1/5] tests: checkfs: fix compiler warnings Artem Bityutskiy
2011-04-05 12:51 ` [PATCHv1 1/3] tests: make jittertest buildable Artem Bityutskiy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.