Files
mgmt/test/shell/libmgmt-change1.sh
James Shubin 9f5057eac7 resources: Do not panic on autogrouped graph switches
Graph changes from autogrouped -> not autogrouped or vice versa cause a
panic (or I assume a leak) because we compared the auto grouped graph to
the ungrouped one, which would cause an Exit on an unstarted Vertex.
This includes a test that seems to reliably reproduces the issue.
2017-06-08 01:05:58 -04:00

11 lines
253 B
Bash
Executable File

#!/bin/bash -e
go build -i -o libmgmt libmgmt-change1.go
# this example should change graphs frequently, and then shutdown...
$timeout --kill-after=30s 20s ./libmgmt &
pid=$!
wait $pid # get exit status
e=$?
rm libmgmt # cleanup build artefact
exit $e