From b39b94b5300467bcbcf763b6652efaaec6ea13d5 Mon Sep 17 00:00:00 2001
From: Matthew Pickering <matthewtpickering@gmail.com>
Date: Mon, 22 Jan 2024 10:01:29 +0000
Subject: [PATCH] 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.
---
 .../PathsModule/Executable-Relocatable/setup.test.hs            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cabal-testsuite/PackageTests/PathsModule/Executable-Relocatable/setup.test.hs b/cabal-testsuite/PackageTests/PathsModule/Executable-Relocatable/setup.test.hs
index 76a4db87db..ea88c7f9e4 100644
--- a/cabal-testsuite/PackageTests/PathsModule/Executable-Relocatable/setup.test.hs
+++ b/cabal-testsuite/PackageTests/PathsModule/Executable-Relocatable/setup.test.hs
@@ -4,4 +4,4 @@ import Test.Cabal.Prelude
 main = setupAndCabalTest $ do
   skipIfWindows
   skipUnlessGhcVersion ">= 8.0"
-  setup_build ["--enable-relocatable"]
+  withPackageDb $ setup_build ["--enable-relocatable"]
-- 
GitLab