summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Huerner <ingo.huerner@xse.de>2014-12-04 13:00:36 +0100
committerIngo Huerner <ingo.huerner@xse.de>2014-12-04 13:00:36 +0100
commit44d31964a9005ee21191dca8f488f27fb17c41ff (patch)
treeb594fdd0ce3af9ee6391758a4c78216560493955
parent6309873db051fb8003ff07e1a54f5fc780544b62 (diff)
downloadpersistence-client-library-44d31964a9005ee21191dca8f488f27fb17c41ff.tar.gz
Fixed a problem when running the tests the first time after test data has been created
-rw-r--r--test/persistence_client_library_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/persistence_client_library_test.c b/test/persistence_client_library_test.c
index aedd150..5e3c416 100644
--- a/test/persistence_client_library_test.c
+++ b/test/persistence_client_library_test.c
@@ -577,9 +577,6 @@ char gBackupInfo[] = {
const char* backupBlacklist = "/Data/mnt-c/lt-persistence_client_library_test/BackupFileList.info";
- unsigned int shutdownReg = PCL_SHUTDOWN_TYPE_FAST | PCL_SHUTDOWN_TYPE_NORMAL;
- (void)pclInitLibrary(gTheAppId, shutdownReg);
-
if(access(backupBlacklist, F_OK) == -1)
{
int ret = 0;
@@ -1275,6 +1272,7 @@ START_TEST(test_WriteConfDefault)
// -- file interface ---
memset(readBuffer, 0, READ_SIZE);
fd = pclFileOpen(PCL_LDBID_LOCAL, "media/mediaData.configurable", PCL_USER_DEFAULTDATA, 99);
+ printf("The FD: %d\n", fd);
ret = pclFileWriteData(fd, writeBuffer, strlen((char*)writeBuffer));
pclFileSeek(fd, 0, SEEK_SET);
ret = pclFileReadData(fd, readBuffer, READ_SIZE);
@@ -1708,7 +1706,7 @@ static Suite * persistencyClientLib_suite()
tcase_add_checked_fixture(tc_WriteConfDefault, data_setup, data_teardown);
suite_add_tcase(s, tc_persDataFile);
- tcase_add_checked_fixture(tc_persDataFile, data_setupBlacklist, data_teardown);
+ tcase_add_checked_fixture(tc_persDataFile, data_setup, data_teardown);
suite_add_tcase(s, tc_persDataFileBackupCreation);
tcase_add_checked_fixture(tc_persDataFileBackupCreation, data_setupBackup, data_teardown);
@@ -1767,6 +1765,7 @@ int main(int argc, char *argv[])
/// debug log and trace (DLT) setup
DLT_REGISTER_APP("PCLt","tests the persistence client library");
+
#if 0
//Manual test of concurrent access
// start 2 instances of persistence-client_library_test
@@ -1850,6 +1849,7 @@ int main(int argc, char *argv[])
}
#endif
+ data_setupBlacklist();
if(argc >= 2)
{