Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Filesystem] Failing test on OSX #16632

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

Closed
simodima opened this issue Nov 23, 2015 · 0 comments
Closed

[Filesystem] Failing test on OSX #16632

simodima opened this issue Nov 23, 2015 · 0 comments

Comments

@simodima
Copy link
Contributor

There is a failing test on Filesystem component.

1) Symfony\Component\Filesystem\Tests\FilesystemTest::testTempnamOnUnwritableFallsBackToSysTmp
Failed asserting that 'file:///private/var/folders/6x/xd9z4xdd3n37crk7sbs9tlh80000gn/T/baroQ0fRi' starts with "file:///var/folders/6x/xd9z4xdd3n37crk7sbs9tlh80000gn/T".

The test fails because sys_get_temp_dir() yields you a dir inside /var which is a symlink on OSX /var -> /private/var

@fabpot fabpot closed this as completed Nov 23, 2015
fabpot added a commit that referenced this issue Nov 23, 2015
…retto460)

This PR was submitted for the master branch but it was merged into the 2.8 branch instead (closes #16633).

Discussion
----------

[Filesystem] Fixed failing test due to tempdir symlink

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #16632
| License       | MIT
| Doc PR        |

Fixes the failing test referred in #16632

Commits
-------

3aee6b9 Fix: Resolve tempdir symlink, not working on OSX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants