tests should skip if there's no $DISPLAY
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar GTK+ Frontends |
Triaged
|
Low
|
Unassigned |
Bug Description
If the bzr-gtk tests are run with no $DISPLAY set, we get a lot of warnings, followed by a crash (on Hardy):
/home/mbp/
self.
/home/mbp/
self.
/home/mbp/
self.
/home/mbp/
self.
/home/mbp/
self.
zsh: segmentation fault (core dumped) ./bzr selftest
./bzr selftest 398.13s user 26.61s system 60% cpu 11:43.90 total
It would be nice if (on unix) these tests skipped if there was no X display. (I realize detecting whether it's valid will be hard, but just checking the variable is set should be enough.)
I can reproduce this.
We shouldn't skip all tests though, as some don't require a display.