Lines Matching defs:tmp

54 function tmp(p) {
278 // We need to calculate the relative path to the tmp dir from cwd
319 // /tmp/node-test-realpath-f1 -> $tmpDir/node-test-realpath-d1/foo
320 // /tmp/node-test-realpath-d1 -> $tmpDir/node-test-realpath-d2
321 // /tmp/node-test-realpath-d2/foo -> $tmpDir/node-test-realpath-f2
322 // /tmp/node-test-realpath-f2
329 const entry = tmp('node-test-realpath-f1');
330 try { fs.unlinkSync(tmp('node-test-realpath-d2/foo')); } catch {
333 try { fs.rmdirSync(tmp('node-test-realpath-d2')); } catch {
336 fs.mkdirSync(tmp('node-test-realpath-d2'), 0o700);
340 [tmp('node-test-realpath-d1'),
342 [tmp('node-test-realpath-d2/foo'), '../node-test-realpath-f2'],
343 [tmp('node-test-realpath-f2'),
357 unlink.push(tmp('node-test-realpath-d2'));
414 fs.mkdirSync(tmp('a'), 0o755);
415 fs.mkdirSync(tmp('a/b'), 0o755);
416 fs.symlinkSync('..', tmp('a/d'), 'dir');
417 unlink.push(tmp('a/d'));
418 fs.symlinkSync('..', tmp('a/b/e'), 'dir');
419 unlink.push(tmp('a/b/e'));
421 const abedabed = tmp('abedabed'.split('').join('/'));
422 const abedabed_real = tmp('');
424 const abedabeda = tmp('abedabeda'.split('').join('/'));
425 const abedabeda_real = tmp('a');
457 fs.mkdirSync(tmp('a'), 0o755);
458 fs.mkdirSync(tmp('a/b'), 0o755);
459 fs.symlinkSync('..', tmp('a/d'), 'dir');
460 unlink.push(tmp('a/d'));
461 fs.symlinkSync('..', tmp('a/b/e'), 'dir');
462 unlink.push(tmp('a/b/e'));
464 const abedabed = tmp('abedabed'.split('').join('/'));
465 const abedabed_real = tmp('');
467 const abedabeda = tmp('abedabeda'.split('').join('/'));
468 const abedabeda_real = tmp('a');
490 // `-- link -> /tmp/node-test-realpath-abs-kids/a/b/
606 t = tmp(t);
609 fs.writeFileSync(tmp('cycles/root.js'), "console.error('roooot!');");