diff options
author | Jakob Unterwurzacher | 2016-01-20 20:55:56 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-01-20 20:57:00 +0100 |
commit | 17f0eb13396ad31083e786ed64aef368646c2aa6 (patch) | |
tree | af6ca1565ce456d41290ca956e4209d29413509c /integration_tests/main_test.go | |
parent | b9dd9e9a1cfabd4ecf7f4d3996b0a2c24cee75b4 (diff) |
Convert logging to standard Go log.Logger
This is in preparation of logging to syslog.
Diffstat (limited to 'integration_tests/main_test.go')
-rw-r--r-- | integration_tests/main_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
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 |