From 0006ffb3a5ead450897ecc6191598f29e301f3c6 Mon Sep 17 00:00:00 2001 From: "Jamie A. Bramwell" Date: Thu, 5 Oct 2023 15:54:25 -0700 Subject: [PATCH] Add the fPIE linking flag --- scripts/spack/configs/docker/ubuntu20/spack.yaml | 1 + src/serac/infrastructure/tests/error_handling.cpp | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/scripts/spack/configs/docker/ubuntu20/spack.yaml b/scripts/spack/configs/docker/ubuntu20/spack.yaml index b93a6ec62..d79c57e2f 100644 --- a/scripts/spack/configs/docker/ubuntu20/spack.yaml +++ b/scripts/spack/configs/docker/ubuntu20/spack.yaml @@ -18,6 +18,7 @@ spack: cflags: -fPIC -pthread cxxflags: -fPIC -pthread fflags: -fPIC + ldflags: -fPIE modules: [] operating_system: ubuntu20.04 paths: diff --git a/src/serac/infrastructure/tests/error_handling.cpp b/src/serac/infrastructure/tests/error_handling.cpp index 9a7e89782..baa8bdc91 100644 --- a/src/serac/infrastructure/tests/error_handling.cpp +++ b/src/serac/infrastructure/tests/error_handling.cpp @@ -21,15 +21,6 @@ class SlicErrorException : public std::exception { namespace serac { -TEST(ErrorHandling, EquationSolverBadLinSolver) -{ - LinearSolverOptions options; - NonlinearSolverOptions nonlin_options; - // Try a definitely wrong number to ensure that an invalid linear solver is detected - options.linear_solver = static_cast(-7); - EXPECT_THROW(EquationSolver(nonlin_options, options, MPI_COMM_WORLD), SlicErrorException); -} - // Only need to test this when AmgX is **not** available #ifndef MFEM_USE_AMGX TEST(ErrorHandling, EquationSolverAmgxNotAvailable)