about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-07-29 12:19:15 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-07-29 12:19:15 +0200
commit573cdae8ce17b4e0ec51f5bcc90cc5f49c2e290f (patch)
tree23ea5a1dcaefdb2909e91efd30dbc2304ef47e02 /tests
parentfs-tracer: use time based batching (diff)
downloadfs-tracer-573cdae8ce17b4e0ec51f5bcc90cc5f49c2e290f.tar.gz
fs-tracer-573cdae8ce17b4e0ec51f5bcc90cc5f49c2e290f.tar.bz2
fs-tracer-573cdae8ce17b4e0ec51f5bcc90cc5f49c2e290f.zip
fs-tracer: store file offset
Diffstat (limited to 'tests')
-rw-r--r--tests/openat.c7
-rw-r--r--tests/testfile3
2 files changed, 9 insertions, 1 deletions
diff --git a/tests/openat.c b/tests/openat.c
index d843d2f..e5f6f17 100644
--- a/tests/openat.c
+++ b/tests/openat.c
@@ -22,6 +22,13 @@ int main(int argc, char** argv) {
 		printf("Write error: %s\n", strerror(errno));
 	}
 	
+	ret = syscall(SYS_write, fd, "\nplease", 7);
+	printf("Write ret: %d\n", ret);
+
+	if (ret == -1) {
+		printf("Write error: %s\n", strerror(errno));
+	}
+	
 	ret = syscall(SYS_close, fd);
 	printf("Close ret: %d\n", ret);
 
diff --git a/tests/testfile b/tests/testfile
index 6426eb5..993bbba 100644
--- a/tests/testfile
+++ b/tests/testfile
@@ -1 +1,2 @@
-I'm writing this :) pls.
\ No newline at end of file
+I'm writing this :) pls.
+please
\ No newline at end of file