test-coffee: Fix test filenames

The filenames were mixed up between some of the tests, thus breaking the
purpose of these tests.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
This commit is contained in:
Benoît Thébaudeau 2016-05-29 22:09:20 +02:00
parent 76429e4f0e
commit 150b9fbd8b

View file

@ -204,7 +204,7 @@ coffee_test_append(void)
/* Test 1 and 2: Append data to the same file many times. */ /* Test 1 and 2: Append data to the same file many times. */
for(i = 0; i < APPEND_BYTES; i += BULK_SIZE) { for(i = 0; i < APPEND_BYTES; i += BULK_SIZE) {
afd = cfs_open("T3", CFS_WRITE | CFS_APPEND); afd = cfs_open("T2", CFS_WRITE | CFS_APPEND);
if(afd < 0) { if(afd < 0) {
TEST_FAIL(1); TEST_FAIL(1);
} }
@ -220,7 +220,7 @@ coffee_test_append(void)
/* Test 3-6: Read back the data written previously and verify that it /* Test 3-6: Read back the data written previously and verify that it
is correct. */ is correct. */
afd = cfs_open("T3", CFS_READ); afd = cfs_open("T2", CFS_READ);
if(afd < 0) { if(afd < 0) {
TEST_FAIL(3); TEST_FAIL(3);
} }
@ -269,7 +269,7 @@ coffee_test_modify(void)
/* Test 16: Test multiple writes at random offset. */ /* Test 16: Test multiple writes at random offset. */
for(r = 0; r < 100; r++) { for(r = 0; r < 100; r++) {
wfd = cfs_open("T2", CFS_WRITE | CFS_READ); wfd = cfs_open("T3", CFS_WRITE | CFS_READ);
if(wfd < 0) { if(wfd < 0) {
TEST_FAIL(3); TEST_FAIL(3);
} }