This test contains x86 asm so that it wouldn't be run on x86_64 machine,
but run into a simple main() functions instead. However it forgets to
give a return value, so that the program will exit with exit_code=10.
added tst_exit() to solve this issue.

Signed-off-by: Caspar Zhang <[email protected]>
---
 testcases/kernel/syscalls/getdents/getdents02.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/syscalls/getdents/getdents02.c
b/testcases/kernel/syscalls/getdents/getdents02.c
index 4daae05..2503712 100644
--- a/testcases/kernel/syscalls/getdents/getdents02.c
+++ b/testcases/kernel/syscalls/getdents/getdents02.c
@@ -74,7 +74,7 @@ int main()
 {
        tst_resm(TINFO, "This test includes x86 asm and will not work on "
                 "this machine");
-
+       tst_exit();
 }
 #else

@@ -208,4 +208,4 @@ void cleanup(void)

 }

-#endif /* __i386__ */
\ No newline at end of file
+#endif /* __i386__ */
-- 
1.7.4.1


-- 
Quality Engineer (Kernel) in
Red Hat Software (Beijing) Co., R&D Branch
http://www.cn.redhat.com/
TEL: +86-10-62608150
This test contains x86 asm so that it wouldn't be run on x86_64 machine,
but run into a simple main() functions instead. However it forgets to 
give a return value, so that the program will exit with exit_code=10. 
added tst_exit() to solve this issue.

Signed-off-by: Caspar Zhang <[email protected]>
---
 testcases/kernel/syscalls/getdents/getdents02.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/syscalls/getdents/getdents02.c 
b/testcases/kernel/syscalls/getdents/getdents02.c
index 4daae05..2503712 100644
--- a/testcases/kernel/syscalls/getdents/getdents02.c
+++ b/testcases/kernel/syscalls/getdents/getdents02.c
@@ -74,7 +74,7 @@ int main()
 {
        tst_resm(TINFO, "This test includes x86 asm and will not work on "
                 "this machine");
-
+       tst_exit();
 }
 #else
 
@@ -208,4 +208,4 @@ void cleanup(void)
 
 }
 
-#endif /* __i386__ */
\ No newline at end of file
+#endif /* __i386__ */
-- 
1.7.4.1

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to