OpenSSL::Test: Fix directory calculations in __cwd()
authorRichard Levitte <levitte@openssl.org>
Mon, 20 Jun 2016 12:03:12 +0000 (14:03 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 21 Jun 2016 12:52:34 +0000 (14:52 +0200)
commit3da9eeb1582ed06aad55aa1b450e37376fedf3ab
tree39c32beb9c83c1489b7c3dc89392061122c02298
parentc952780c25f67d0645ef5e57a8ac7dae6ce2d586
OpenSSL::Test: Fix directory calculations in __cwd()

We recalculate the location of the directories we keep track of.
However, we did so after having moved to the new directory already, so
the data we did the calculations from were possibly not quite correct.

This change moves the calculations to happen before moving to the new
directory.

This issue is sporadic, and possibly dependent on the platform.

Reviewed-by: Matt Caswell <matt@openssl.org>
test/testlib/OpenSSL/Test.pm