From 3306fd1d97754dd01859619ab8ce47a956445151 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 18 Jun 2017 08:38:35 -0700 Subject: test: accommodate AIX by watching file Watching directories has limited support on AIX. This is documented. Watch a file in test/async-hooks/test-fseventwrap.js to accommodate AIX. PR-URL: https://github.com/nodejs/node/pull/13766 Ref: https://github.com/nodejs/node/issues/13577#issuecomment-308038674 Reviewed-By: Gibson Fahnestock Reviewed-By: Colin Ihrig Reviewed-By: Yuta Hiroto Reviewed-By: Michael Dawson Reviewed-By: James M Snell --- test/async-hooks/test-fseventwrap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/async-hooks/test-fseventwrap.js b/test/async-hooks/test-fseventwrap.js index 2eb1abad65..acb579c6ae 100644 --- a/test/async-hooks/test-fseventwrap.js +++ b/test/async-hooks/test-fseventwrap.js @@ -1,6 +1,6 @@ 'use strict'; - require('../common'); + const assert = require('assert'); const initHooks = require('./init-hooks'); const tick = require('./tick'); @@ -10,7 +10,7 @@ const fs = require('fs'); const hooks = initHooks(); hooks.enable(); -const watcher = fs.watch(__dirname, onwatcherChanged); +const watcher = fs.watch(__filename, onwatcherChanged); function onwatcherChanged() { } watcher.close(); -- cgit v1.2.1