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 | |
| parent | b9dd9e9a1cfabd4ecf7f4d3996b0a2c24cee75b4 (diff) | |
Convert logging to standard Go log.Logger
This is in preparation of logging to syslog.
Diffstat (limited to 'integration_tests')
| -rw-r--r-- | integration_tests/main_test.go | 10 | ||||
| -rw-r--r-- | integration_tests/performance_test.go | 3 | 
2 files changed, 6 insertions, 7 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 diff --git a/integration_tests/performance_test.go b/integration_tests/performance_test.go index 1122858..83bf207 100644 --- a/integration_tests/performance_test.go +++ b/integration_tests/performance_test.go @@ -58,7 +58,6 @@ func BenchmarkStreamRead(t *testing.B) {  			}  		}  		f2.Close() -		//fmt.Printf("done\n")  	}  	file, err := os.Open(fn) @@ -70,7 +69,7 @@ func BenchmarkStreamRead(t *testing.B) {  	for i = 0; i < t.N; i++ {  		_, err := file.Read(buf)  		if err == io.EOF { -			fmt.Printf("Test file too small\n") +			fmt.Println("Test file too small")  			t.SkipNow()  		} else if err != nil {  			fmt.Println(err)  | 
