From: "Mitani" <mitani@ryobi.co.jp>
To: ltp-list@lists.sourceforge.net
Cc: "當座 健市" <toza@ryobi.co.jp>
Subject: [LTP] [PATCH] fix "8-3-buildonly"
Date: Wed, 11 Aug 2010 10:36:40 +0900 [thread overview]
Message-ID: <000301cb38f5$a5992050$f0cb60f0$@co.jp> (raw)
[-- Attachment #1: Type: text/plain, Size: 1596 bytes --]
Hi,
I tried to build open_posix_testsuite testcases with latest git:
ltp-dev-7c67a09a10268b5f9f503e0254f1f0f9f5ac2b69.tar.gz
Several testcases failed to build.
One of them is as follows:
------------
[...]
conformance/definitions/sched_h/8-3-buildonly compile FAILED
../../../conformance/definitions/sched_h/8-3-buildonly.c:24:2: error: #error
SCHED_SPORADIC not defined
[...]
------------
"8-3-buildonly.c" outputs "SCHED_SPORADIC not defined" message by
condition:
------------(8-3-buildonly.c)
[...]
#include <sched.h>
#include <unistd.h>
#if (defined(_POSIX_SPORADIC_SERVER) && _POSIX_SPORADIC_SERVER != -1) \
|| (defined(_POSIX_THREAD_SPORADIC_SERVER) && \
POSIX_THREAD_SPORADIC_SERVER != -1)
#ifndef SCHED_SPORADIC
#error SCHED_SPORADIC not defined
#endif
#endif
------------
I noticed that "POSIX_THREAD_SPORADIC_SERVER" parameter has not "_"
in its top.
Signed-off-by: Tomonori Mitani <mitani@ryobi.co.jp>
============
---
a/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-3-buildon
ly.c 2010-08-05 22:28:15.000000000 +0900
+++
b/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-3-buildon
ly.c 2010-08-11 10:22:24.000000000 +0900
@@ -18,7 +18,7 @@
#if (defined(_POSIX_SPORADIC_SERVER) && _POSIX_SPORADIC_SERVER != -1) \
|| (defined(_POSIX_THREAD_SPORADIC_SERVER) && \
- POSIX_THREAD_SPORADIC_SERVER != -1)
+ _POSIX_THREAD_SPORADIC_SERVER != -1)
#ifndef SCHED_SPORADIC
#error SCHED_SPORADIC not defined
============
After applying above patch, "8-3-buildonly.c" succeeded to build.
Regards--
-Tomonori Mitani
[-- Attachment #2: 8-3-buildonly.patch --]
[-- Type: application/octet-stream, Size: 537 bytes --]
--- a/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-3-buildonly.c 2010-08-05 22:28:15.000000000 +0900
+++ b/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-3-buildonly.c 2010-08-11 10:22:24.000000000 +0900
@@ -18,7 +18,7 @@
#if (defined(_POSIX_SPORADIC_SERVER) && _POSIX_SPORADIC_SERVER != -1) \
|| (defined(_POSIX_THREAD_SPORADIC_SERVER) && \
- POSIX_THREAD_SPORADIC_SERVER != -1)
+ _POSIX_THREAD_SPORADIC_SERVER != -1)
#ifndef SCHED_SPORADIC
#error SCHED_SPORADIC not defined
[-- Attachment #3: Type: text/plain, Size: 224 bytes --]
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
[-- Attachment #4: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next reply other threads:[~2010-08-11 1:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-11 1:36 Mitani [this message]
2010-08-12 5:41 ` [LTP] [PATCH] fix "8-3-buildonly" Garrett Cooper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000301cb38f5$a5992050$f0cb60f0$@co.jp' \
--to=mitani@ryobi.co.jp \
--cc=ltp-list@lists.sourceforge.net \
--cc=toza@ryobi.co.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox