test(providers): correct executable and retained-owner expectations
This commit is contained in:
parent
3ae02f6a45
commit
f0e86997aa
|
|
@ -62,8 +62,9 @@ assert.equal(first.retryable,true);
|
|||
assert.match(first.reason,/Delete owned object by handle failed.*Win32 5/s);
|
||||
const [name,...extra]=readdirSync(temp);assert.ok(name);assert.equal(extra.length,0);
|
||||
const path=join(temp,name);const identity=statSync(path,{bigint:true});
|
||||
assert.throws(()=>renameSync(path,path+'-replacement'));
|
||||
assert.equal(statSync(path,{bigint:true}).ino,identity.ino);
|
||||
// Ownership follows the retained NTFS handle even when the directory moves.
|
||||
const moved=path+'-renamed';renameSync(path,moved);
|
||||
assert.equal(statSync(moved,{bigint:true}).ino,identity.ino);
|
||||
if(process.argv[2]!=='teardown'){
|
||||
const second=systemWindowsNativeAuthority();assert.equal(second.available,true);
|
||||
assert.equal(readdirSync(temp).length,0);
|
||||
|
|
|
|||
|
|
@ -215,7 +215,10 @@ process.stdin.on("data", (chunk) => {
|
|||
);
|
||||
execFileSync(process.execPath, ["--check", provider]);
|
||||
await chmod(provider, 0o700);
|
||||
manager = new RizinDebugSessionManager({ REA_RIZIN_COMMAND: provider });
|
||||
manager = new RizinDebugSessionManager({
|
||||
...process.env,
|
||||
REA_RIZIN_COMMAND: provider,
|
||||
});
|
||||
const started = await manager.start({
|
||||
path: "/tmp/fake-target",
|
||||
inferior_tty: tty,
|
||||
|
|
@ -576,7 +579,7 @@ process.stdin.on("data", (chunk) => {
|
|||
await chmod(provider, 0o700);
|
||||
let providerStderr = "";
|
||||
manager = new RizinDebugSessionManager(
|
||||
{ REA_RIZIN_COMMAND: provider },
|
||||
{ ...process.env, REA_RIZIN_COMMAND: provider },
|
||||
{
|
||||
spawnProcess: async (spawnOptions) => {
|
||||
const launched = await spawnOwnedProviderProcess(spawnOptions);
|
||||
|
|
|
|||
Loading…
Reference in New Issue