diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-04-28 13:46:47 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-04-28 13:46:47 -0400 |
commit | 94e1cd46a031b60ddaa51f3d08f61ec46c77a97b (patch) | |
tree | a6be73dd1ab18d44160dee6056d2ec7dacacf37e /tests/test_shell_shell.c | |
parent | 165fc0645c4bcd0c0120931ea99339f7b9559c61 (diff) | |
download | spmc-94e1cd46a031b60ddaa51f3d08f61ec46c77a97b.tar.gz |
Refactor TestValue usage
Diffstat (limited to 'tests/test_shell_shell.c')
-rw-r--r-- | tests/test_shell_shell.c | 4 |
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); |