[PATCH 4/4] tests: virrotatingfiletest: update virRotatingFileWriterAppend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



update virRotatingFileWriterAppend calls by adding timestamp parameter

Signed-off-by: Shaleen Bathla <shaleen.bathla@xxxxxxxxxx>
---
 tests/virrotatingfiletest.c | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/tests/virrotatingfiletest.c b/tests/virrotatingfiletest.c
index ede65848ea54..5ba7235c13da 100644
--- a/tests/virrotatingfiletest.c
+++ b/tests/virrotatingfiletest.c
@@ -188,7 +188,7 @@ static int testRotatingFileWriterNew(const void *data G_GNUC_UNUSED)
 
     memset(buf, 0x5e, sizeof(buf));
 
-    virRotatingFileWriterAppend(file, buf, sizeof(buf));
+    virRotatingFileWriterAppend(file, buf, sizeof(buf), 0);
 
     if (testRotatingFileWriterAssertFileSizes(sizeof(buf),
                                               (off_t)-1,
@@ -231,7 +231,7 @@ static int testRotatingFileWriterAppend(const void *data G_GNUC_UNUSED)
 
     memset(buf, 0x5e, sizeof(buf));
 
-    virRotatingFileWriterAppend(file, buf, sizeof(buf));
+    virRotatingFileWriterAppend(file, buf, sizeof(buf), 0);
 
     if (testRotatingFileWriterAssertFileSizes(1024,
                                               (off_t)-1,
@@ -274,7 +274,7 @@ static int testRotatingFileWriterTruncate(const void *data G_GNUC_UNUSED)
 
     memset(buf, 0x5e, sizeof(buf));
 
-    virRotatingFileWriterAppend(file, buf, sizeof(buf));
+    virRotatingFileWriterAppend(file, buf, sizeof(buf), 0);
 
     if (testRotatingFileWriterAssertFileSizes(512,
                                               (off_t)-1,
@@ -317,7 +317,7 @@ static int testRotatingFileWriterRolloverNone(const void *data G_GNUC_UNUSED)
 
     memset(buf, 0x5e, sizeof(buf));
 
-    virRotatingFileWriterAppend(file, buf, sizeof(buf));
+    virRotatingFileWriterAppend(file, buf, sizeof(buf), 0);
 
     if (testRotatingFileWriterAssertFileSizes(112,
                                               (off_t)-1,
@@ -360,9 +360,9 @@ static int testRotatingFileWriterRolloverOne(const void *data G_GNUC_UNUSED)
 
     memset(buf, 0x5e, sizeof(buf));
 
-    virRotatingFileWriterAppend(file, buf, sizeof(buf));
-    virRotatingFileWriterAppend(file, buf, sizeof(buf));
-    virRotatingFileWriterAppend(file, buf, sizeof(buf));
+    virRotatingFileWriterAppend(file, buf, sizeof(buf), 0);
+    virRotatingFileWriterAppend(file, buf, sizeof(buf), 0);
+    virRotatingFileWriterAppend(file, buf, sizeof(buf), 0);
 
     if (testRotatingFileWriterAssertFileSizes(512,
                                               1024,
@@ -405,7 +405,7 @@ static int testRotatingFileWriterRolloverAppend(const void *data G_GNUC_UNUSED)
 
     memset(buf, 0x5e, sizeof(buf));
 
-    virRotatingFileWriterAppend(file, buf, sizeof(buf));
+    virRotatingFileWriterAppend(file, buf, sizeof(buf), 0);
 
     if (testRotatingFileWriterAssertFileSizes(256,
                                               1024,
@@ -448,13 +448,13 @@ static int testRotatingFileWriterRolloverMany(const void *data G_GNUC_UNUSED)
 
     memset(buf, 0x5e, sizeof(buf));
 
-    virRotatingFileWriterAppend(file, buf, sizeof(buf));
-    virRotatingFileWriterAppend(file, buf, sizeof(buf));
-    virRotatingFileWriterAppend(file, buf, sizeof(buf));
-    virRotatingFileWriterAppend(file, buf, sizeof(buf));
-    virRotatingFileWriterAppend(file, buf, sizeof(buf));
-    virRotatingFileWriterAppend(file, buf, sizeof(buf));
-    virRotatingFileWriterAppend(file, buf, sizeof(buf));
+    virRotatingFileWriterAppend(file, buf, sizeof(buf), 0);
+    virRotatingFileWriterAppend(file, buf, sizeof(buf), 0);
+    virRotatingFileWriterAppend(file, buf, sizeof(buf), 0);
+    virRotatingFileWriterAppend(file, buf, sizeof(buf), 0);
+    virRotatingFileWriterAppend(file, buf, sizeof(buf), 0);
+    virRotatingFileWriterAppend(file, buf, sizeof(buf), 0);
+    virRotatingFileWriterAppend(file, buf, sizeof(buf), 0);
 
     if (testRotatingFileWriterAssertFileSizes(512,
                                               1024,
@@ -496,7 +496,7 @@ static int testRotatingFileWriterRolloverLineBreak(const void *data G_GNUC_UNUSE
                                               (off_t)-1) < 0)
         goto cleanup;
 
-    virRotatingFileWriterAppend(file, buf, strlen(buf));
+    virRotatingFileWriterAppend(file, buf, strlen(buf), 0);
 
     if (testRotatingFileWriterAssertFileSizes(59,
                                               144,
@@ -538,7 +538,7 @@ static int testRotatingFileWriterLargeFile(const void *data G_GNUC_UNUSED)
                                               (off_t)-1) < 0)
         goto cleanup;
 
-    virRotatingFileWriterAppend(file, buf, strlen(buf));
+    virRotatingFileWriterAppend(file, buf, strlen(buf), 0);
 
     if (testRotatingFileWriterAssertFileSizes(103,
                                               200,
-- 
2.39.3
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux