From 2aa8d8ccbf6906b6eb39b2e4130b05c95919744b Mon Sep 17 00:00:00 2001
From: Edward d'Auvergne <edward@nmr-relax.com>
Date: Mon, 11 Jun 2018 08:50:36 +0200
Subject: [PATCH] TestSuite: Activation of the runtime headless mode whenever
 globals are set up.

---
 test_suite/FGTestApi/globals.cxx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test_suite/FGTestApi/globals.cxx b/test_suite/FGTestApi/globals.cxx
index 42771a793..8e47f2b6a 100644
--- a/test_suite/FGTestApi/globals.cxx
+++ b/test_suite/FGTestApi/globals.cxx
@@ -38,6 +38,9 @@ void initTestGlobals(const std::string& testName)
 
     globals->set_fg_home(homePath);
 
+    // Activate headless mode.
+    globals->set_headless(true);
+
     fgSetDefaults();
 
     std::unique_ptr<TimeManager> t;