From: Peng H. <pe...@cn...> - 2011-08-08 07:12:57
|
Modify the file path to "/dev/null" when call ftok(). Signed-off-by: Peng Haitao <pe...@cn...> --- .../conformance/interfaces/sched_setparam/10-1.c | 2 +- .../conformance/interfaces/sched_setparam/9-1.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/10-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/10-1.c index 245d1e0..1b183a7 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/10-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/10-1.c @@ -110,7 +110,7 @@ int main(void) child_pid = malloc(nb_cpu * sizeof(int)); - key = ftok("conformance/interfaces/sched_setparam/10-1.c",1234); + key = ftok("/dev/null", 1234); shm_id = shmget(key, sizeof(int), IPC_CREAT|0600); if (shm_id < 0) { perror("An error occurs when calling shmget()"); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/9-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/9-1.c index 349999c..e06ebc9 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/9-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/9-1.c @@ -130,7 +130,7 @@ int main(void) child_pid = malloc(nb_cpu * sizeof(int)); - key = ftok("conformance/interfaces/sched_setparam/9-1.c",1234); + key = ftok("/dev/null", 1234); shm_id = shmget(key, sizeof(int), IPC_CREAT|0600); if (shm_id < 0) { perror("An error occurs when calling shmget()"); -- 1.7.1 -- Best Regards, Peng Haitao |
From: Cyril H. <ch...@su...> - 2011-08-25 15:51:45
|
Hi! > Modify the file path to "/dev/null" when call ftok(). Technically yes, but these tests are invalid for many other reasons and needs to be redesigned as whole. -- Cyril Hrubis ch...@su... |