aboutsummaryrefslogtreecommitdiff
path: root/tests/test_shell_shell.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2020-04-28 14:27:31 -0400
committerGitHub <noreply@github.com>2020-04-28 14:27:31 -0400
commitbdd8485de4cde8dba67b27146feda5fd821cd7ef (patch)
tree1f87a54f617b7054c2bb7b66e4e30488c40268f4 /tests/test_shell_shell.c
parent338abde356efcae6cf0a000b71b781d21c8733b6 (diff)
parent428849beb3be85cf69f3ca3029d330ee2f2d842f (diff)
downloadspmc-bdd8485de4cde8dba67b27146feda5fd821cd7ef.tar.gz
Merge pull request #31 from jhunkeler/strlist-helpers
Strlist helpers
Diffstat (limited to 'tests/test_shell_shell.c')
-rw-r--r--tests/test_shell_shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_shell_shell.c b/tests/test_shell_shell.c
index ade16a7..5c04c0d 100644
--- a/tests/test_shell_shell.c
+++ b/tests/test_shell_shell.c
@@ -4,7 +4,7 @@
const char *testFmt = "returned '%s', expected '%s'\n";
struct TestCase testCase[] = {
- {.arg[0].unsigned_integer = SHELL_OUTPUT|SHELL_BENCHMARK, .arg[1].sptr = "echo hello; sleep 3", .arg[2].floating = 3, .arg[3].sptr = "hello"},
+ {.arg[0].unsigned_int = SHELL_OUTPUT | SHELL_BENCHMARK, .arg[1].sptr = "echo hello; sleep 1", .arg[2].floating = 1, .arg[3].sptr = "hello"},
};
size_t numCases = sizeof(testCase) / sizeof(struct TestCase);
@@ -13,7 +13,7 @@ int main(int argc, char *argv[]) {
char elapsed[100] = {0,};
Process *result = NULL;
- shell(&result, testCase[i].arg[0].unsigned_integer, testCase[i].arg[1].sptr);
+ shell(&result, testCase[i].arg[0].unsigned_int, testCase[i].arg[1].sptr);
sprintf(elapsed, "%0.8lf", result->time_elapsed);
strip(result->output);