The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
test(gateguard): create file symlinks for the hard-link case on Windows
Jeffrey Montoya8a1f76318467
diff --git a/tests/lib/gateguard-target-class.test.js b/tests/lib/gateguard-target-class.test.jsindex 7a09cc983..f21d2a156 100644--- a/tests/lib/gateguard-target-class.test.js+++ b/tests/lib/gateguard-target-class.test.js@@ -230,9 +230,9 @@ function tempProject() {return root;}-function trySymlink(target, link) {+function trySymlink(target, link, type = 'dir') {try {- fs.symlinkSync(target, link, 'dir');+ fs.symlinkSync(target, link, type);return true;} catch (e) {if (process.platform === 'win32' && e.code === 'EPERM') return false;@@ -567,7 +567,7 @@ test('isHardLinkedTargetFor is true for a file with more than one link', () => {assert.strictEqual(isHardLinkedTargetFor(at('src/lib'), data), false, 'a directory');fs.writeFileSync(at('src/plainfile'), 'x');assert.strictEqual(isHardLinkedTargetFor(at('src/plainfile/a.py'), data), false, 'ENOTDIR is a missing file');- if (trySymlink(at('src/lib/report.py'), at('src/report_symlink.py'))) {+ if (trySymlink(at('src/lib/report.py'), at('src/report_symlink.py'), 'file')) {assert.strictEqual(isHardLinkedTargetFor(at('src/report_symlink.py'), data), true, 'symlink to a hard-linked file');}if (trySymlink(at('src/lib/single.py'), at('src/single_symlink.py'))) {