diff mbox

[PATCHv1,1/3] tests: make jittertest buildable

Message ID 38fa03e74a299568e73f69b03ffcacd5ee38b62b.1302002802.git.ext-andriy.shevchenko@nokia.com
State Accepted
Commit 118fc7debb64d0486333d767225d3f150053a556
Headers show

Commit Message

Shevchenko Andriy (EXT-Teleca/Helsinki) April 5, 2011, 11:33 a.m. UTC
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(-)

Comments

Artem Bityutskiy April 5, 2011, 12:51 p.m. UTC | #1
On Tue, 2011-04-05 at 14:33 +0300, Andy Shevchenko wrote:
> 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(-)

Pushed this one, thanks.
diff mbox

Patch

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