about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/a.outbin15872 -> 15872 bytes
-rw-r--r--tests/openat.c7
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/a.out b/tests/a.out
index a6e5bdd..3d9e7c1 100755
--- a/tests/a.out
+++ b/tests/a.out
Binary files differdiff --git a/tests/openat.c b/tests/openat.c
index e5f6f17..582260a 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_lseek, fd, 24, 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);
 	printf("Write ret: %d\n", ret);