Making tests pass on mac os x without this change tests would fail under mac os x at least in 10.8.2
merged branch ChristianGaertner/patch-2 (PR #9054)

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

Discussion
----------

[Config] Making tests pass on mac os x

without this change tests would fail under mac os x (at least in 10.8.2).

I think this change also removes inconstancy in the test (the `realpath()` is added in the other tests as well!).

| Q             | A
| ------------- | ---
| Bug fix?      | yes (fixes the test)
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | ~
| License       | MIT
| Doc PR        | ~

Cheers,

Christian

Commits
-------

61a00a8 Making tests pass on mac os x without this change tests would fail under mac os x at least in 10.8.2