Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
jacobsa-fuse
Commits
cf5cfbcc
Commit
cf5cfbcc
authored
Jul 29, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a (new) test bug on Linux.
parent
d4575296
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
samples/interruptfs/interrupt_fs_test.go
samples/interruptfs/interrupt_fs_test.go
+13
-0
No files found.
samples/interruptfs/interrupt_fs_test.go
View file @
cf5cfbcc
...
...
@@ -19,6 +19,7 @@ import (
"os"
"os/exec"
"path"
"runtime"
"testing"
"time"
...
...
@@ -72,6 +73,18 @@ func (t *InterruptFSTest) StatFoo() {
}
func
(
t
*
InterruptFSTest
)
InterruptedDuringRead
()
{
// On Linux, since we have async reads enabled, the kernel sends the read and
// the flush ops in parallel. When the process receives SIGINT, the interrupt
// is delivered only for the flush, probably because that's what the process
// appears to be blocking on. So this test doesn't work.
//
// Note that this means that cancellation is not delivered for reads on
// Linux. This is unfortunate, but probably worth it due to the significant
// increase in performance.
if
runtime
.
GOOS
==
"linux"
{
return
}
var
err
error
t
.
fs
.
EnableReadBlocking
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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