Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hpc
gekkofs
Commits
3574e007
Commit
3574e007
authored
May 17, 2022
by
Ramon Nou
Browse files
lseek extra WHENCE testing
parent
90e03f6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/integration/position/test_lseek.py
View file @
3574e007
...
...
@@ -129,7 +129,17 @@ def test_lseek(gkfs_daemon, gkfs_client):
assert
ret
.
retval
==
-
1
#FAILS
assert
ret
.
errno
==
22
ret
=
gkfs_client
.
lseek
(
file_a
,
0
,
os
.
SEEK_DATA
)
assert
ret
.
retval
==
-
1
assert
ret
.
errno
==
errno
.
EINVAL
ret
=
gkfs_client
.
lseek
(
file_a
,
0
,
os
.
SEEK_HOLE
)
assert
ret
.
retval
==
-
1
assert
ret
.
errno
==
errno
.
EINVAL
ret
=
gkfs_client
.
lseek
(
file_a
,
0
,
666
)
assert
ret
.
retval
==
-
1
assert
ret
.
errno
==
errno
.
EINVAL
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment