Skip to content

Commit

Permalink
Makes launcher asserterions case insensitive
Browse files Browse the repository at this point in the history
Signed-off-by: Emily Casey <ecasey@vmware.com>
  • Loading branch information
ekcasey committed Jul 22, 2020
1 parent dee32e5 commit 0e229e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions launch/launcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func testLauncher(t *testing.T, when spec.G, it spec.S) {
}

if runtime.GOOS == "windows" {
h.AssertEq(t, syscallExecArgsColl[0].argv0, `C:\Windows\system32\notepad.exe`)
h.AssertEq(t, strings.ToLower(syscallExecArgsColl[0].argv0), `c:\windows\system32\notepad.exe`)
h.AssertEq(t, syscallExecArgsColl[0].argv, []string{"notepad", "arg1", "arg2"})
} else {
h.AssertEq(t, syscallExecArgsColl[0].argv0, "/bin/sh")
Expand All @@ -232,7 +232,7 @@ func testLauncher(t *testing.T, when spec.G, it spec.S) {
}

if runtime.GOOS == "windows" {
h.AssertEq(t, syscallExecArgsColl[0].argv0, `C:\Windows\system32\notepad.exe`)
h.AssertEq(t, strings.ToLower(syscallExecArgsColl[0].argv0), `c:\windows\system32\notepad.exe`)
h.AssertEq(t, syscallExecArgsColl[0].argv, []string{"notepad", "arg1", "arg2"})
} else {
h.AssertEq(t, syscallExecArgsColl[0].argv0, "/bin/sh")
Expand Down

0 comments on commit 0e229e3

Please sign in to comment.