Skip to content

Commit a4b78cf

Browse files
committed
os: fixed 'file' unit test logging on windows
1 parent 5e1abfb commit a4b78cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/os/file_windows_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestSymlink(t *testing.T) {
2222
// the expected result depends on it
2323
devMode, _ := isDeveloperModeActive()
2424

25-
t.Logf("Windows developer mode active: %v\n", devMode)
25+
t.Logf("Windows developer mode active: %v", devMode)
2626

2727
// create dummy file to symlink
2828
dummyFile := filepath.Join(os.TempDir(), "issue22874.test")
@@ -52,7 +52,7 @@ func TestSymlink(t *testing.T) {
5252
}
5353

5454
// developer mode is disabled, and the error is expected
55-
fmt.Printf("Success: Creating symlink failed with expected ERROR_PRIVILEGE_NOT_HELD error\n")
55+
t.Logf("Success: Creating symlink failed with expected ERROR_PRIVILEGE_NOT_HELD error")
5656

5757
return nil
5858
}
@@ -65,7 +65,7 @@ func TestSymlink(t *testing.T) {
6565
// remove the link. don't care for any errors
6666
os.Remove(linkFile)
6767

68-
t.Logf("Success: Creating symlink succeeded\n")
68+
t.Logf("Success: Creating symlink succeeded")
6969

7070
return nil
7171
}

0 commit comments

Comments
 (0)