aboutsummaryrefslogtreecommitdiff
path: root/tests/test_fs_touch.c
diff options
context:
space:
mode:
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();