Skip to content

Commit 2d8875c

Browse files
authored
fix(tests): use native smoke result descriptor (#155)
Extract the numeric fd from the native open result so descriptor-based smoke operations receive the expected value. Verified with real native smoke before and after the fix, plus a passing rerun.
1 parent a5354d3 commit 2d8875c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
### Docs and Tooling
1616

17+
- Fix the standalone native smoke script to use the numeric descriptor returned by `openBeneath()` for identity checks and cleanup.
1718
- Accept npm 11 array and npm 12 package-name-keyed pack results while validating the intended package and its file metadata.
1819

1920
### Dependencies and maintenance

‎scripts/native-smoke.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ try {
1818
console.log("native smoke: write fixture");
1919
fs.writeFileSync(path.join(root, "nested", "source"), "source");
2020
console.log("native smoke: open");
21-
const fd = native.openBeneath(rootFd, "nested/source", fs.constants.O_RDONLY);
21+
const { fd } = native.openBeneath(rootFd, "nested/source", fs.constants.O_RDONLY);
2222
try {
2323
console.log("native smoke: fstat");
2424
const identity = native.fstatIdentity(fd);

0 commit comments

Comments
 (0)