File: 0001-fix-parsing-flags.patch

package info (click to toggle)
golang-github-fogleman-gg 1.3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 956 kB
  • sloc: makefile: 3
file content (29 lines) | stat: -rw-r--r-- 747 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Author: Nilesh Patra <npatra974@gmail.com>
Description:
	* Initialize test so that test flags can be parsed during execution.
	* Change checksum to correct match - this has already been fixed upstream but new version has not been released yet.
Last-Changed: July 25, 2020

--- a/context_test.go
+++ b/context_test.go
@@ -11,6 +11,11 @@
 
 var save bool
 
+var _ = func() bool {
+	testing.Init()
+	return true
+}()
+
 func init() {
 	flag.BoolVar(&save, "save", false, "save PNG output for each test case")
 	flag.Parse()
@@ -191,7 +196,7 @@
 		dc.Pop()
 	}
 	saveImage(dc, "TestPushPop")
-	checkHash(t, dc, "e0d6724eb72033577811a55f7a642f6a")
+	checkHash(t, dc, "31e908ee1c2ea180da98fd5681a89d05")
 }
 
 func TestDrawStringWrapped(t *testing.T) {