]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
libxl: event tests: Fix `=' vs `==' in fdderegrace
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 15 Jul 2015 14:38:27 +0000 (15:38 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 15 Jul 2015 15:02:33 +0000 (16:02 +0100)
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/libxl/test_fdderegrace.c

index b644d7afd4f138207e3c2de0726f3ac942b57c91..f57965f7093407ae12e57ababa51112a8d3ecd59 100644 (file)
@@ -25,7 +25,7 @@ int main(int argc, char **argv) {
     rc = libxl_event_check(ctx, &event, LIBXL_EVENTMASK_ALL, 0,0);
     assert(!rc);
     assert(event);
-    assert(event->for_user = how.u.for_event);
+    assert(event->for_user == how.u.for_event);
     assert(event->type == LIBXL_EVENT_TYPE_OPERATION_COMPLETE);
     assert(event->u.operation_complete.rc == ERROR_ABORTED);