diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2020-04-28 14:27:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 14:27:31 -0400 |
commit | bdd8485de4cde8dba67b27146feda5fd821cd7ef (patch) | |
tree | 1f87a54f617b7054c2bb7b66e4e30488c40268f4 /tests/test_shlib_spm_shlib_deps.c | |
parent | 338abde356efcae6cf0a000b71b781d21c8733b6 (diff) | |
parent | 428849beb3be85cf69f3ca3029d330ee2f2d842f (diff) | |
download | spmc-bdd8485de4cde8dba67b27146feda5fd821cd7ef.tar.gz |
Merge pull request #31 from jhunkeler/strlist-helpers
Strlist helpers
Diffstat (limited to 'tests/test_shlib_spm_shlib_deps.c')
-rw-r--r-- | tests/test_shlib_spm_shlib_deps.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_shlib_spm_shlib_deps.c b/tests/test_shlib_spm_shlib_deps.c index 4f0bfd4..b890b47 100644 --- a/tests/test_shlib_spm_shlib_deps.c +++ b/tests/test_shlib_spm_shlib_deps.c @@ -41,10 +41,10 @@ static char *find_library(const char *name) { } struct TestCase testCase[] = { - {.caseValue.sptr = "/bin/sh", .truthValue.signed_integer = 0}, - {.caseValue.sptr = "/usr/bin/tar", .truthValue.signed_integer = 0}, - {.caseValue.sptr = "/dev/null", .truthValue.signed_integer = -1}, // not an object - {.caseValue.sptr = NULL, .truthValue.signed_integer = -1}, // invalid call + {.caseValue.sptr = "/bin/sh", .truthValue.signed_int = 0}, + {.caseValue.sptr = "/usr/bin/tar", .truthValue.signed_int = 0}, + {.caseValue.sptr = "/dev/null", .truthValue.signed_int = -1}, // not an object + {.caseValue.sptr = NULL, .truthValue.signed_int = -1}, // invalid call }; size_t numCases = sizeof(testCase) / sizeof(struct TestCase); @@ -52,7 +52,7 @@ size_t numCases = sizeof(testCase) / sizeof(struct TestCase); int main(int argc, char *argv[]) { for (size_t i = 0; i < numCases; i++) { StrList *result = shlib_deps(testCase[i].caseValue.sptr); - if (result == NULL && testCase[i].truthValue.signed_integer < 0) { + if (result == NULL && testCase[i].truthValue.signed_int < 0) { // expected failure fprintf(stderr, "case %zu: trapped expected failure (ignore any stderr text)\n", i); continue; |