summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-04 00:38:54 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-04 00:38:54 -0500
commita3a9587f80da3daccf1e830fb24096c0badd30d5 (patch)
treee10dc4ef2b29c6a4e218a3eccc8f71386e867082
parent5b211ba4d0b0f1f614352fd171a32ec930084500 (diff)
downloadgpsd-a3a9587f80da3daccf1e830fb24096c0badd30d5.tar.gz
Clean up the GPSD shared-memory segment, and document why.
-rw-r--r--SConstruct7
1 files changed, 5 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index 4ee50564..11f47b9c 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1552,9 +1552,12 @@ if not env['socket_export']:
announce("GPS regression tests suppressed because socket_export is off.")
gps_regress = None
else:
- # Regression-test the daemon
+ # Regression-test the daemon. But first:
+ # (1) Clear GPSD's SHM segment in case a previous abort didn't. This
+ # prevents spurious error messages.
+ # (2) Dump the platform and its delay parameters.
gps_regress = Utility("gps-regress", [gpsd, python_built_extensions],
- '$SRCDIR/gpsfake -T; $SRCDIR/regress-driver $REGRESSOPTS test/daemon/*.log')
+ 'ipcrm shm 0x47505344 2>/dev/null; $SRCDIR/gpsfake -T; $SRCDIR/regress-driver $REGRESSOPTS test/daemon/*.log')
# Build the regression tests for the daemon.
# Note: You'll have to do this whenever the default leap second