When libtool is in the picture to deal with shared libraries, processes
end up with an "lt-" prefix in their process names. This caused the
process name check in daemon.at to fail. This commit fixes the problem by
stripping off that prefix.
Fixes: d8c6955a03ea ("tests: Simplify and improve the daemon tests.")
Reported-by: Timothy Redaelli <[email protected]>
Reported-at:
https://mail.openvswitch.org/pipermail/ovs-dev/2018-December/354574.html
Signed-off-by: Ben Pfaff <[email protected]>
---
tests/daemon.at | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/daemon.at b/tests/daemon.at
index 6382d856bd95..bdc8910f90da 100644
--- a/tests/daemon.at
+++ b/tests/daemon.at
@@ -7,7 +7,9 @@ OVS_START_SHELL_HELPERS
# (On other systems, don't bother.)
if test -e /proc/$$/comm; then
check_process_name() {
- AT_CHECK_UNQUOTED([cat /proc/$1/comm], [0], [$2
+ # In case we're building with shared libraries enabled, strip
+ # off libtool's lt- prefix.
+ AT_CHECK_UNQUOTED([sed 's/lt-//' /proc/$1/comm], [0], [$2
])
}
else
--
2.16.1
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev