summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-09 23:06:57 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-09 23:06:57 -0500
commitdcc5dab6acbb294655cdf8f26f0577d8a5770b13 (patch)
treedb0f14792c266452dc1eaa7c7b3994dfb11175d6 /SConstruct
parentfacc08793683c63cc658d0ae549f3561411f0a08 (diff)
downloadgpsd-dcc5dab6acbb294655cdf8f26f0577d8a5770b13.tar.gz
In SConstruct, set a non-default GPSD_SHM_KEY value for the tests.
All regression tests pass.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 5 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 61bbd37e..72233f02 100644
--- a/SConstruct
+++ b/SConstruct
@@ -232,6 +232,11 @@ for var in import_env:
envs["GPSD_HOME"] = os.getcwd()
envs["LD_LIBRARY_PATH"] = os.getcwd()
+# In the test productions, use a non-default value of the SHM key
+# to avoid colliding with production instances. Value must be legal for
+# atoi(3)/strtoul(3); this is the default key plus one.
+envs["GPSD_SHM_KEY"] = "0x47505345"
+
env = Environment(tools=["default", "tar", "textfile"], options=opts, ENV=envs)
opts.Save('.scons-option-cache', env)
env.SConsignFile(".sconsign.dblite")