about summary refs log tree commit diff
path: root/tests/openat.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/openat.c')
-rw-r--r--tests/openat.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/openat.c b/tests/openat.c
index 582260a..b14f4ae 100644
--- a/tests/openat.c
+++ b/tests/openat.c
@@ -22,14 +22,21 @@ int main(int argc, char** argv) {
 		printf("Write error: %s\n", strerror(errno));
 	}
 	
-	ret = syscall(SYS_lseek, fd, 24, SEEK_SET);
+	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_lseek, fd, 0, SEEK_SET);
 	printf("FSeek ret: %d\n", ret);
 
 	if (ret == -1) {
 		printf("FSeek error: %s\n", strerror(errno));
 	}
 	
-	ret = syscall(SYS_write, fd, "\nplease", 7);
+	ret = syscall(SYS_write, fd, "A", 1);
 	printf("Write ret: %d\n", ret);
 
 	if (ret == -1) {