aboutsummaryrefslogtreecommitdiff
path: root/tests/test_fs_touch.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_fs_touch.c
parent338abde356efcae6cf0a000b71b781d21c8733b6 (diff)
parent428849beb3be85cf69f3ca3029d330ee2f2d842f (diff)
downloadspmc-bdd8485de4cde8dba67b27146feda5fd821cd7ef.tar.gz
Merge pull request #31 from jhunkeler/strlist-helpers
Strlist helpers
Diffstat (limited to 'tests/test_fs_touch.c')
-rw-r--r--tests/test_fs_touch.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_fs_touch.c b/tests/test_fs_touch.c
index dfd7ddb..5a0282f 100644
--- a/tests/test_fs_touch.c
+++ b/tests/test_fs_touch.c
@@ -5,10 +5,10 @@
const char *testFmt = "case: '%s': returned '%d', expected '%d'\n";
struct TestCase testCase[] = {
- {.caseValue.sptr = FILENAME, .truthValue.signed_integer = 0}, // create file
- {.caseValue.sptr = FILENAME, .truthValue.signed_integer = 0}, // update file
- {.caseValue.sptr = FILENAME, .truthValue.signed_integer = 0}, // update file
- {.caseValue.sptr = ".", .truthValue.signed_integer = -1},
+ {.caseValue.sptr = FILENAME, .truthValue.signed_int = 0}, // create file
+ {.caseValue.sptr = FILENAME, .truthValue.signed_int = 0}, // update file
+ {.caseValue.sptr = FILENAME, .truthValue.signed_int = 0}, // update file
+ {.caseValue.sptr = ".", .truthValue.signed_int = -1},
};
size_t numCases = sizeof(testCase) / sizeof(struct TestCase);
@@ -23,7 +23,7 @@ int main(int argc, char *argv[]) {
for (size_t i = 0; i < numCases; i++) {
int result = touch(testCase[i].caseValue.sptr);
- myassert(result == testCase[i].truthValue.signed_integer, testFmt, testCase[i].caseValue.sptr, result, testCase[i].truthValue.signed_integer);
+ myassert(result == testCase[i].truthValue.signed_int, testFmt, testCase[i].caseValue.sptr, result, testCase[i].truthValue.signed_int);
}
cleanup();