From 17f0eb13396ad31083e786ed64aef368646c2aa6 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 20 Jan 2016 20:55:56 +0100 Subject: Convert logging to standard Go log.Logger This is in preparation of logging to syslog. --- integration_tests/main_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'integration_tests/main_test.go') diff --git a/integration_tests/main_test.go b/integration_tests/main_test.go index f4ff544..03b26f9 100644 --- a/integration_tests/main_test.go +++ b/integration_tests/main_test.go @@ -24,7 +24,7 @@ func TestMain(m *testing.M) { flag.Parse() if testing.Verbose() { - fmt.Printf("***** Testing with OpenSSL\n") + fmt.Println("***** Testing with OpenSSL") } resetTmpDir() // <- this also create gocryptfs.diriv mount(defaultCipherDir, defaultPlainDir, "--zerokey") @@ -40,7 +40,7 @@ func TestMain(m *testing.M) { } if testing.Verbose() { - fmt.Printf("***** Testing with native Go crypto\n") + fmt.Println("***** Testing with native Go crypto") } resetTmpDir() mount(defaultCipherDir, defaultPlainDir, "--zerokey", "--openssl=false") @@ -52,7 +52,7 @@ func TestMain(m *testing.M) { } if testing.Verbose() { - fmt.Printf("***** Testing \"--plaintextnames\"\n") + fmt.Println("***** Testing \"--plaintextnames\"") } resetTmpDir() mount(defaultCipherDir, defaultPlainDir, "--zerokey", "--plaintextnames") @@ -77,7 +77,7 @@ func testWriteN(t *testing.T, fn string, n int) string { d := make([]byte, n) written, err := file.Write(d) if err != nil || written != len(d) { - t.Errorf("err=\"%s\", written=%d\n", err, written) + t.Errorf("err=\"%s\", written=%d", err, written) } err = file.Close() if err != nil { @@ -92,7 +92,7 @@ func testWriteN(t *testing.T, fn string, n int) string { hashActual := md5fn(defaultPlainDir + fn) if hashActual != hashWant { - t.Errorf("Wrong content, hashWant=%s hashActual=%s\n", hashWant, hashActual) + t.Errorf("Wrong content, hashWant=%s hashActual=%s", hashWant, hashActual) } return hashActual -- cgit v1.2.3