Skip to content

Commit

Permalink
fix: fixed core test
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsocket committed May 14, 2021
1 parent dd71ccf commit b9cc36b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions core/core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,19 @@ func TestCoreExec(t *testing.T) {
stdout string
}{
{"foo", []string{}, "", `exec: "foo": executable file not found in $PATH`, ""},
{"ps", []string{"-someinvalidflag"}, "", "exit status 1", ""},
{"ps", []string{"-someinvalidflag"},
`error: process ID list syntax error
Usage:
ps [options]
Try 'ps --help <simple|list|output|threads|misc|all>'
or 'ps --help <s|l|o|t|m|a>'
for additional help text.
For more details see ps(1).`, "exit status 1", ""},
{"true", []string{}, "", "", ""},
{"head", []string{"/path/to/file/that/does/not/exist"}, "", "exit status 1", ""},
{"head", []string{"/path/to/file/that/does/not/exist"}, "/usr/bin/head: cannot open '/path/to/file/that/does/not/exist' for reading: No such file or directory", "exit status 1", ""},
}

for _, u := range units {
Expand Down

0 comments on commit b9cc36b

Please sign in to comment.