mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
d6f5902c5e625fc6018f804f397dd7396bd119e9
chromedp was defaulting to log.Printf, which is not good for tests. The xgb and xgbutil logs were suppressed if -v wasn't given, but they were sent straight to os.Stderr otherwise: === RUN TestX11 === PAUSE TestX11 === CONT TestX11 XGB: conn.go:47: Could not get authority info: EOF XGB: conn.go:48: Trying connection without authority info... --- PASS: TestX11 (0.87s) Instead, direct their loggers to an io.Writer implementation that sends its output to t.Logf: === RUN TestX11 === PAUSE TestX11 === CONT TestX11 TestX11: x11_test.go:187: XGB: conn.go:47: Could not get authority info: EOF TestX11: x11_test.go:187: XGB: conn.go:48: Trying connection without authority info... --- PASS: TestX11 (0.86s) We do end up with duplicate log prefixes, but at least we don't write straight to stderr, which will be a problem as we add more concurrent tests. Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Gio
Immediate mode GUI programs in Go. See gioui.org for details and documentation.
Issues
File bugs and TODOs through the issue tracker or send an email to ~eliasnaur/gio@todo.sr.ht. For general discussion, use the mailing list: ~eliasnaur/gio@lists.sr.ht.
Contributing
Post discussion and patches to the mailing list. No Sourcehut account is required and you can post without being subscribed.
See the contribution guide for more details.
License
Description
Languages
Go
89.6%
C
7%
Java
1.7%
Objective-C
1.6%