~sbinet/star-tex-patches

[PATCH star-tex 1/3] cmt/star-tex: keep to-check dvi file around

Details
Message ID
<edfnGcmZPyqYP8yMQLq80xPeAEZW7azFpyXMhr8oU@cp4-web-032.plabs.ch>
DKIM signature
missing
Download raw message
Patch: +3 -0
Signed-off-by: Sebastien Binet <s@sbinet.org>
---
 cmd/star-tex/main_test.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmd/star-tex/main_test.go b/cmd/star-tex/main_test.go
index f395115..84be380 100644
--- a/cmd/star-tex/main_test.go
+++ b/cmd/star-tex/main_test.go
@@ -23,6 +23,8 @@ func TestProcess(t *testing.T) {
				t.Fatalf("could not open TeX document: %+v", err)
			}
			defer r.Close()
			oname := strings.Replace(name, ".tex", ".dvi", 1)
			_ = os.RemoveAll(oname)

			o := new(bytes.Buffer)
			msg := new(bytes.Buffer)
@@ -38,6 +40,7 @@ func TestProcess(t *testing.T) {
			}

			if got, want := o.Bytes(), want; !bytes.Equal(got, want) {
				_ = os.WriteFile(oname, got, 0644)
				t.Fatalf("DVI files compare different")
			}
		})
-- 
2.30.1
Reply to thread Export thread (mbox)