update virRotatingFileWriterAppend calls by adding timestamp parameter
Signed-off-by: Shaleen Bathla <shaleen.bathla(a)oracle.com>
---
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