]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: fix intermittency in the interrupt tests
authorasomers <asomers@FreeBSD.org>
Fri, 10 May 2019 18:18:41 +0000 (18:18 +0000)
committerasomers <asomers@FreeBSD.org>
Fri, 10 May 2019 18:18:41 +0000 (18:18 +0000)
commitf0d9a15015387d6237589882c0ec4b9a947253b9
treed95a2c70b9fe1a729022582e22669e9fd4ba94d0
parenta37d246f7decccdacc079be0c3702f85d142fa8d
fusefs: fix intermittency in the interrupt tests

* In the fatal_signal test, wait for the daemon to receive FUSE_INTERRUPT
  before exiting.
* Explicitly disable restarting syscalls after SIGUSR2.  This fixes
  intermittency in the priority test.  I don't know why, but sometimes that
  test's mkdir would be restarted, and sometimes it would return EINTR.
  ERESTART should be the default.
* Remove a useless copy/pasted sleep in the priority test.

Sponsored by: The FreeBSD Foundation
tests/sys/fs/fusefs/interrupt.cc