diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-04 00:38:54 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-04 00:38:54 -0500 |
commit | a3a9587f80da3daccf1e830fb24096c0badd30d5 (patch) | |
tree | e10dc4ef2b29c6a4e218a3eccc8f71386e867082 | |
parent | 5b211ba4d0b0f1f614352fd171a32ec930084500 (diff) | |
download | gpsd-a3a9587f80da3daccf1e830fb24096c0badd30d5.tar.gz |
Clean up the GPSD shared-memory segment, and document why.
-rw-r--r-- | SConstruct | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |