mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 11:37:46 +00:00
os: isWine: be compatible with older versions of wine, too
Turns out wine 5.x doesn't export WINEUSERNAME.
This commit is contained in:
@@ -54,7 +54,7 @@ func TestFixLongPath(t *testing.T) {
|
||||
// isWine returns true if executing on wine (Wine Is Not an Emulator), which
|
||||
// is compatible with windows but does not reproduce all its quirks.
|
||||
func isWine() bool {
|
||||
return os.Getenv("WINEUSERNAME") != ""
|
||||
return os.Getenv("WINECONFIGDIR") != ""
|
||||
}
|
||||
|
||||
func TestMkdirAllExtendedLength(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user