Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: skip fs-copyfile-respect-permission if root #27378

Closed

Commits on Apr 24, 2019

  1. test: skip fs-copyfile-respect-permission if root

    Currently, if this test is run as the root user the following
    failure will occur:
    
    === release test-fs-copyfile-respect-permissions ===
    Path: parallel/test-fs-copyfile-respect-permissions
    assert.js:89
      throw new AssertionError(obj);
      ^
    AssertionError [ERR_ASSERTION]: Missing expected exception (check).
        at Object.<anonymous>
          (/node/test/parallel/test-fs-copyfile-respect-permissions.js:38:10)
        at Module._compile (internal/modules/cjs/loader.js:759:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
        at Module.load (internal/modules/cjs/loader.js:628:32)
        at Function.Module._load (internal/modules/cjs/loader.js:555:12)
        at Function.Module.runMain (internal/modules/cjs/loader.js:826:10)
        at internal/main/run_main_module.js:17:11
    Command:
    out/Release/node test/parallel/test-fs-copyfile-respect-permissions.js
    [05:41|% 100|+ 2620|-   1]: Done
    
    This commit adds a root user check and skips this test if running as the
    user root.
    danbev committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    d433c31 View commit details
    Browse the repository at this point in the history
  2. squash!: add windows check

    danbev committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    4febc0e View commit details
    Browse the repository at this point in the history