The method to skip case 1 of adjtimex02 in uclinux platform will make case 3
and 4 fail.
--
root:/> ./adjtimex02
adjtimex02 1 PASS : Test Passed, adjtimex() returned -1 with errno: 22
adjtimex02 2 PASS : Test Passed, adjtimex() returned -1 with errno: 22
adjtimex02 3 FAIL : Test Failed, adjtimex()returned 5, errno = 0 :
Success
adjtimex02 4 FAIL : Test Failed, adjtimex()returned 5, errno = 0 :
Success
adjtimex02 5 PASS : Test Passed, adjtimex() returned -1 with errno: 1
root:/>
--
--
Index: testcases/kernel/syscalls/adjtimex/adjtimex02.c
===================================================================
--- testcases/kernel/syscalls/adjtimex/adjtimex02.c
+++ testcases/kernel/syscalls/adjtimex/adjtimex02.c
@@ -122,12 +122,7 @@
void (*cleanup) ();
int exp_errno;
} test_cases[] = {
-#ifndef UCLINUX
- /* Skip since uClinux does not implement memory protection */
- {
- (struct timex *)-1, NULL, NULL, EFAULT},
-#endif
- {
+ { (struct timex *)-1, NULL, NULL, EFAULT},{
&buff, setup2, NULL, EINVAL}, {
&buff, setup3, NULL, EINVAL}, {
&buff, setup4, NULL, EINVAL}, {
@@ -159,7 +154,18 @@
Tst_count = 0;
for (i = 0; i < TST_TOTAL; ++i) {
+#ifdef UCLINUX
/*
+ * Skip first case since uClinux does not implement
+ * memory protection.
+ */
+ if (i == 0) {
+ tst_resm(TCONF, "uClinux does not implement"
+ " memory protection.");
+ continue;
+ }
+#endif
+ /*
* since Linux 2.6.26, if buf.offset value is
outside
* the acceptable range, it is simply normalized
instead
* of letting the syscall fail. so just skip this
test
--
Best regards,
Vivi Li
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list