aboutsummaryrefslogtreecommitdiff
path: root/tests/test_shlib_spm_shlib_deps.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-04-28 13:46:47 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-04-28 13:46:47 -0400
commit94e1cd46a031b60ddaa51f3d08f61ec46c77a97b (patch)
treea6be73dd1ab18d44160dee6056d2ec7dacacf37e /tests/test_shlib_spm_shlib_deps.c
parent165fc0645c4bcd0c0120931ea99339f7b9559c61 (diff)
downloadspmc-94e1cd46a031b60ddaa51f3d08f61ec46c77a97b.tar.gz
Refactor TestValue usage
Diffstat (limited to 'tests/test_shlib_spm_shlib_deps.c')
-rw-r--r--tests/test_shlib_spm_shlib_deps.c10
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;