testsuite: Fix Executable-Relocatable test package database location
commitb39b94b5300467bcbcf763b6652efaaec6ea13d5
authorMatthew Pickering <matthewtpickering@gmail.com>
Mon, 22 Jan 2024 10:01:29 +0000 (22 10:01 +0000)
committerMikolaj <281893+Mikolaj@users.noreply.github.com>
Thu, 1 Feb 2024 12:26:54 +0000 (1 12:26 +0000)
tree0f7922045ebb56885f9800fb1d9fd376fece3c0c
parentdbe5cf42d2de1a74ce363b2514fc51de3e673ae8
testsuite: Fix Executable-Relocatable test package database location

We were attempting to register a package into the global package
database, which then triggered some other check to do with relocatable
packages to fail.

The fix is to initialise and use a local package database, so the
package would be built and installed into the local package database.
cabal-testsuite/PackageTests/PathsModule/Executable-Relocatable/setup.test.hs