Commit 1aa32caa authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Fix race in TestInodeNotify.

parent d80381c6
......@@ -78,13 +78,17 @@ func TestInodeNotify(t *testing.T) {
dir := test.dir
fs.size = 42
test.state.ThreadSanitizerSync()
fi, err := os.Lstat(dir + "/file")
CheckSuccess(err)
if fi.Mode()&os.ModeType != 0 || fi.Size() != 42 {
t.Error(fi)
}
test.state.ThreadSanitizerSync()
fs.size = 666
fi, err = os.Lstat(dir + "/file")
CheckSuccess(err)
if fi.Mode()&os.ModeType != 0 || fi.Size() == 666 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment