diff options
| author | Michael Albinus | 2023-10-12 11:02:53 +0200 |
|---|---|---|
| committer | Michael Albinus | 2023-10-12 11:02:53 +0200 |
| commit | 088dd67f891553e1a27e65c97e386d0dd8dc4f64 (patch) | |
| tree | 5f56001e7c8dca79990ebc6276fa0747327a7082 /src | |
| parent | 963ccc05acf2939c95524de9175a1fc3053b0f6f (diff) | |
| download | emacs-088dd67f891553e1a27e65c97e386d0dd8dc4f64.tar.gz emacs-088dd67f891553e1a27e65c97e386d0dd8dc4f64.zip | |
New filenotify tests
* src/inotify.c (Finotify_watch_list, Finotify_allocated_p):
Fix argument list.
* test/lisp/filenotify-tests.el (file-notify-test04-autorevert):
Use `skip-when'.
(file-notify-test12-unmount, file-notify-test12-unmount-remote):
New tests.
Diffstat (limited to 'src')
| -rw-r--r-- | src/inotify.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inotify.c b/src/inotify.c index 247d9f03055..f50b9ddcaa7 100644 --- a/src/inotify.c +++ b/src/inotify.c | |||
| @@ -517,12 +517,14 @@ it invalid. */) | |||
| 517 | #ifdef INOTIFY_DEBUG | 517 | #ifdef INOTIFY_DEBUG |
| 518 | DEFUN ("inotify-watch-list", Finotify_watch_list, Sinotify_watch_list, 0, 0, 0, | 518 | DEFUN ("inotify-watch-list", Finotify_watch_list, Sinotify_watch_list, 0, 0, 0, |
| 519 | doc: /* Return a copy of the internal watch_list. */) | 519 | doc: /* Return a copy of the internal watch_list. */) |
| 520 | (void) | ||
| 520 | { | 521 | { |
| 521 | return Fcopy_sequence (watch_list); | 522 | return Fcopy_sequence (watch_list); |
| 522 | } | 523 | } |
| 523 | 524 | ||
| 524 | DEFUN ("inotify-allocated-p", Finotify_allocated_p, Sinotify_allocated_p, 0, 0, 0, | 525 | DEFUN ("inotify-allocated-p", Finotify_allocated_p, Sinotify_allocated_p, 0, 0, 0, |
| 525 | doc: /* Return non-nil, if an inotify instance is allocated. */) | 526 | doc: /* Return non-nil, if an inotify instance is allocated. */) |
| 527 | (void) | ||
| 526 | { | 528 | { |
| 527 | return inotifyfd < 0 ? Qnil : Qt; | 529 | return inotifyfd < 0 ? Qnil : Qt; |
| 528 | } | 530 | } |