* [LTP] [PATCH] flock03.c: fixes a typo when compiling with UCLINUX=1
@ 2013-07-09 12:37 Benoit Marcot
2013-07-09 13:56 ` chrubis
2013-07-10 1:59 ` Wanlong Gao
0 siblings, 2 replies; 3+ messages in thread
From: Benoit Marcot @ 2013-07-09 12:37 UTC (permalink / raw)
To: ltp-list@lists.sourceforge.net
[-- Attachment #1.1: Type: text/plain, Size: 2064 bytes --]
flock03.c: This patch fixes a typo when compiling with UCLINUX=1.
Corrects FILENAME to FILE_NAME, and removes some trailing white-spaces in
empty lines.
Signed-off-by: Benoit Marcot <benoit.marcot@arm.com>
---
testcases/kernel/syscalls/flock/flock03.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/testcases/kernel/syscalls/flock/flock03.c b/testcases/kernel/syscalls/flock/flock03.c
index bacf4f6..a7a1cd9 100644
--- a/testcases/kernel/syscalls/flock/flock03.c
+++ b/testcases/kernel/syscalls/flock/flock03.c
@@ -86,13 +86,13 @@ int main(int argc, char **argv)
"file, errno %d", errno);
pid = FORK_OR_VFORK();
-
+
if (pid == -1)
tst_brkm(TFAIL, cleanup, "fork() failed, errno %d",
errno);
if (pid == 0) {
#ifdef UCLINUX
- if (self_exec(argv[0], "ds", fd, FILENAME) < 0)
+ if (self_exec(argv[0], "ds", fd, FILE_NAME) < 0)
tst_brkm(TFAIL, cleanup, "self_exec failed, "
"errno &d", errno);
#else
@@ -161,7 +161,7 @@ static void childfunc(int fd)
}
TEST(flock(fd2, LOCK_EX | LOCK_NB));
-
+
if (TEST_RETURN == -1) {
fprintf(stderr, "CHILD: Unable to lock file after "
"unlocking: %s\n", strerror(TEST_ERRNO));
@@ -169,10 +169,10 @@ static void childfunc(int fd)
} else {
fprintf(stderr, "CHILD: Locking after unlock passed\n");
}
-
+
close(fd);
close(fd2);
-
+
exit(0);
}
--
1.8.3
-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
[-- Attachment #1.2: Type: text/html, Size: 7661 bytes --]
[-- Attachment #2: Type: text/plain, Size: 394 bytes --]
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [LTP] [PATCH] flock03.c: fixes a typo when compiling with UCLINUX=1
2013-07-09 12:37 [LTP] [PATCH] flock03.c: fixes a typo when compiling with UCLINUX=1 Benoit Marcot
@ 2013-07-09 13:56 ` chrubis
2013-07-10 1:59 ` Wanlong Gao
1 sibling, 0 replies; 3+ messages in thread
From: chrubis @ 2013-07-09 13:56 UTC (permalink / raw)
To: Benoit Marcot; +Cc: ltp-list@lists.sourceforge.net
Hi!
> flock03.c: This patch fixes a typo when compiling with UCLINUX=1.
>
> Corrects FILENAME to FILE_NAME, and removes some trailing white-spaces in
> empty lines.
>
> Signed-off-by: Benoit Marcot <benoit.marcot@arm.com>
Still not right :(
Now the git am complains about corrupted patch and indeed the line in
question looks like:
if (pid =3D=3D -1)
Looks like the mail was converted to quoted-printable including the
patch itself.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] [PATCH] flock03.c: fixes a typo when compiling with UCLINUX=1
2013-07-09 12:37 [LTP] [PATCH] flock03.c: fixes a typo when compiling with UCLINUX=1 Benoit Marcot
2013-07-09 13:56 ` chrubis
@ 2013-07-10 1:59 ` Wanlong Gao
1 sibling, 0 replies; 3+ messages in thread
From: Wanlong Gao @ 2013-07-10 1:59 UTC (permalink / raw)
To: Benoit Marcot; +Cc: ltp-list@lists.sourceforge.net
On 07/09/2013 08:37 PM, Benoit Marcot wrote:
> flock03.c: This patch fixes a typo when compiling with UCLINUX=1.
>
>
>
> Corrects FILENAME to FILE_NAME, and removes some trailing white-spaces in
>
> empty lines.
>
>
>
> Signed-off-by: Benoit Marcot <benoit.marcot@arm.com>
>
Thank you, fixed on site with your SOB.
Wanlong Gao
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-07-10 2:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-09 12:37 [LTP] [PATCH] flock03.c: fixes a typo when compiling with UCLINUX=1 Benoit Marcot
2013-07-09 13:56 ` chrubis
2013-07-10 1:59 ` Wanlong Gao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox