Modify the file path to "/dev/null" when call ftok().
Signed-off-by: Peng Haitao <[email protected]>
---
.../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
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list