xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tests: xen-access: minor bug fixes
@ 2011-05-05 19:39 Aravindh Puthiyaparambil
  2011-05-06  7:58 ` Ian Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: Aravindh Puthiyaparambil @ 2011-05-05 19:39 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 243 bytes --]

Can this patch be applied to both xen-unstable and xen-4.1-testing so that
it makes it into xen-4.1.1?

Thanks,
Aravindh


Fix a couple of minor bugs in xen-access test program.

Signed-off-by: Aravindh Puthiyaparambil <aravindh@virtuata.com>

[-- Attachment #1.2: Type: text/html, Size: 415 bytes --]

[-- Attachment #2: xen-access-bugfixes.patch --]
[-- Type: text/x-patch, Size: 700 bytes --]

diff -r 6a2089f00dc7 tools/tests/xen-access/xen-access.c
--- a/tools/tests/xen-access/xen-access.c	Fri Mar 25 10:22:10 2011 +0000
+++ b/tools/tests/xen-access/xen-access.c	Thu May 05 12:35:38 2011 -0700
@@ -482,9 +482,6 @@
 
     if ( argc == 3 && argv[0][0] == '-' )
     {
-        argv++;
-        argc--;
-
         if ( !strcmp(argv[0], "-m") )
             required = 1;
         else
@@ -492,6 +489,8 @@
             usage(progname);
             return -1;
         }
+        argv++;
+        argc--;
     }
 
     if ( argc != 2 )
@@ -651,8 +650,6 @@
     if ( rc == 0 )
         rc = rc1;
 
-    xc_interface_close(xch);
-
     DPRINTF("xenaccess exit code %d\n", rc);
     return rc;
 }


[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-06  8:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-05 19:39 [PATCH] tests: xen-access: minor bug fixes Aravindh Puthiyaparambil
2011-05-06  7:58 ` Ian Campbell
2011-05-06  8:09   ` Aravindh Puthiyaparambil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).