Through.
--Subrata
Ricardo Salveti de Araujo wrote:
Hi,
When running both inotify01 and inotify02 test cases at a kernel < 2.6.13 the
test will not run, showing the message:
inotify01 0 WARN : This test needs a kernel that has inotify syscall.
inotify01 0 WARN : Inotify syscall can be found at kernel 2.6.13 or
higher.
This is correct, but as the test is finishing with tst_exit() the exit code is
4, letting LTP to think that the test got FAILED, and is this is wrong.
Looking at other test cases, I found that they're exiting just
with "exit(0);", this patch does exactly that.
Thanks,
------------------------------------------------------------------------
diff -Naur ltp-full-20070831-old/testcases/kernel/syscalls/inotify/inotify01.c
ltp-full-20070831/testcases/kernel/syscalls/inotify/inotify01.c
--- ltp-full-20070831-old/testcases/kernel/syscalls/inotify/inotify01.c
2007-08-31 14:00:51.000000000 -0300
+++ ltp-full-20070831/testcases/kernel/syscalls/inotify/inotify01.c
2007-08-31 14:06:00.000000000 -0300
@@ -328,7 +328,7 @@
{
tst_resm(TWARN, "This test needs a kernel that has inotify syscall.");
tst_resm(TWARN, "Inotify syscall can be found at kernel 2.6.13 or
higher.");
- tst_exit();
+ exit(0);
return 0;
}
diff -Naur ltp-full-20070831-old/testcases/kernel/syscalls/inotify/inotify02.c
ltp-full-20070831/testcases/kernel/syscalls/inotify/inotify02.c
--- ltp-full-20070831-old/testcases/kernel/syscalls/inotify/inotify02.c
2007-08-31 14:00:51.000000000 -0300
+++ ltp-full-20070831/testcases/kernel/syscalls/inotify/inotify02.c
2007-08-31 14:06:18.000000000 -0300
@@ -355,7 +355,7 @@
{
tst_resm(TWARN, "This test needs a kernel that has inotify syscall.");
tst_resm(TWARN, "Inotify syscall can be found at kernel 2.6.13 or
higher.");
- tst_exit();
+ exit(0);
return 0;
}
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list