aboutsummaryrefslogtreecommitdiff
path: root/tests/jittertest/JitterTest.c
diff options
context:
space:
mode:
authorAndy Shevchenko <ext-andriy.shevchenko@nokia.com>2011-04-05 14:33:08 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-05 15:56:51 +0300
commit118fc7debb64d0486333d767225d3f150053a556 (patch)
tree84be7480e8cf9d0e62c621c8bc59933a4b398111 /tests/jittertest/JitterTest.c
parent1a48432ba8ae05af773e4a4cc006c8a611fbee8f (diff)
tests: make jittertest buildable
Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests/jittertest/JitterTest.c')
-rw-r--r--tests/jittertest/JitterTest.c6
1 files changed, 3 insertions, 3 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:");