]> xenbits.xensource.com Git - xtf.git/commitdiff
Fix test fallout from recent Xen change
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 8 Sep 2016 15:33:16 +0000 (16:33 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 8 Sep 2016 15:33:16 +0000 (16:33 +0100)
A recent Xen change switched some use of -ENOSYS to -EOPNOTSUPP.  Treat them
equivelently where relevent.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
tests/xsa-167/main.c
tests/xsa-188/main.c

index 55d626807fc2836a76b0c512f5ce01eed1def25f..893adaf15ac928440c7fcd1e916901754c509df0 100644 (file)
@@ -43,6 +43,7 @@ void test_main(void)
     switch ( rc )
     {
     case -ENOSYS:
+    case -EOPNOTSUPP:
         return xtf_skip("PV superpage support not detected\n");
 
     case -EINVAL:
index 2f15cfd5d0f71c078fb0ca06b049ede32a38d531..1d4afbff64be024c4b783bc9e84984e7636d7462 100644 (file)
@@ -41,8 +41,9 @@ void test_main(void)
     expand_array.array_gfn = virt_to_gfn(array_page);
 
     ret = hypercall_event_channel_op(EVTCHNOP_expand_array, &expand_array);
-    if ( ret != -ENOSYS )
-        xtf_failure("EVTCHNOP_expand_array returned %d (!= %d)\n", ret, -ENOSYS);
+    if ( ret != -ENOSYS && ret != -EOPNOTSUPP )
+        xtf_failure("EVTCHNOP_expand_array returned %d (!= %d or %d)\n",
+                    ret, -ENOSYS, -EOPNOTSUPP);
 
     xtf_success(NULL);
 }