about summary refs log tree commit homepage
path: root/t/dir_idle.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-12-01 02:07:04 +0000
committerEric Wong <e@80x24.org>2023-12-01 21:12:13 +0000
commit5de5b7773970f92f140e6de7da1987bab4cfac04 (patch)
tree827e30dcbfcd5dbe51b57dd610229021e6940344 /t/dir_idle.t
parent2a71ffab935d66cf2a985bc1c01540e721ea72e8 (diff)
downloadpublic-inbox-5de5b7773970f92f140e6de7da1987bab4cfac04.tar.gz
tests: note kevent+tmpfs failures on DragonFly <= 6.4
I forgot to set TMPDIR=/path/to/non-tmpfs again.
Diffstat (limited to 't/dir_idle.t')
-rw-r--r--t/dir_idle.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/dir_idle.t b/t/dir_idle.t
index 14aad7a1..8d085d6e 100644
--- a/t/dir_idle.t
+++ b/t/dir_idle.t
@@ -16,10 +16,12 @@ my $end = 3 + now;
 local @PublicInbox::DS::post_loop_do = (sub { scalar(@x) == 0 && now < $end });
 rmdir("$tmpdir/a/b") or xbail "rmdir $!";
 PublicInbox::DS::event_loop();
-is(scalar(@x), 1, 'got an rmdir event') or xbail explain(\@x);
-if (@x) {
+if (is(scalar(@x), 1, 'got an rmdir event')) {
         is($x[0]->[0]->fullname, "$tmpdir/a/b", 'got expected fullname') and
         ok($x[0]->[0]->IN_DELETE, 'IN_DELETE set');
+} else {
+        check_broken_tmpfs;
+        xbail explain(\@x);
 }
 
 rmdir("$tmpdir/a") or xbail "rmdir $!";
@@ -30,6 +32,7 @@ if (is(scalar(@x), 1, 'got an event after rmdir')) {
         is($x[0]->[0]->fullname, "$tmpdir/a", 'got expected fullname') and
         ok($x[0]->[0]->IN_DELETE_SELF, 'IN_DELETE_SELF set');
 } else {
+        check_broken_tmpfs;
         diag explain(\@x);
 }
 rename("$tmpdir/c", "$tmpdir/j") or xbail "rmdir $!";