2 TestOsExec fails as echo is not a standalone program
Suggestion: make 'echo.bat' file containing '@echo %*'
Also, you would need to check for exp+"\r\n" too or ret.String()[:len(exp)] != exp instead
Note that if you had "hello world" windows would further complcate by placing " at each end
Otherwise it seems to work on win32 (GOOS=windows GOARCH=386)
Regards, Tony
1 TestFmtPrint gets func:%v... (no "!")
2 TestOsExec fails as echo is not a standalone program Suggestion: make 'echo.bat' file containing '@echo %*' Also, you would need to check for exp+"\r\n" too or ret.String()[:len(exp)] != exp instead Note that if you had "hello world" windows would further complcate by placing " at each end
Otherwise it seems to work on win32 (GOOS=windows GOARCH=386) Regards, Tony