]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
test: fix call to virFDStreamOpenFile in testDomainScreenshot
authorClaudio Bley <cbley@av-test.de>
Tue, 24 Sep 2013 09:57:37 +0000 (11:57 +0200)
committerClaudio Bley <cbley@av-test.de>
Tue, 24 Sep 2013 12:27:41 +0000 (14:27 +0200)
N.B.  This had no ill effects as long as O_RDONLY is defined to
      to be 0, such that the expression (O_RDONLY < 0) yielded 0
      again.

Signed-off-by: Claudio Bley <cbley@av-test.de>
src/test/test_driver.c

index 47c9d38cdbcbf07b3de70fb262e6150cf7231eff..e1197c9d73c25a41da00074059ffb0fd735f115f 100644 (file)
@@ -5862,7 +5862,7 @@ testDomainScreenshot(virDomainPtr dom ATTRIBUTE_UNUSED,
     if (VIR_STRDUP(ret, "image/png") < 0)
         return NULL;
 
-    if (virFDStreamOpenFile(st, PKGDATADIR "/libvirtLogo.png", 0, 0, O_RDONLY < 0))
+    if (virFDStreamOpenFile(st, PKGDATADIR "/libvirtLogo.png", 0, 0, O_RDONLY) < 0)
         VIR_FREE(ret);
 
     return ret;