Index: ext/libicpf/src/libicpf-tests/config-test.cpp =================================================================== diff -u -N -r1504b5e9af0cbbc688765c3530ee3443cb04fc01 -r21847bff9bc6958b98f3fe8bac319590b790fc0f --- ext/libicpf/src/libicpf-tests/config-test.cpp (.../config-test.cpp) (revision 1504b5e9af0cbbc688765c3530ee3443cb04fc01) +++ ext/libicpf/src/libicpf-tests/config-test.cpp (.../config-test.cpp) (revision 21847bff9bc6958b98f3fe8bac319590b790fc0f) @@ -49,7 +49,23 @@ THROW(_t("Comparing string values failed"), 0, 0, 0); // store values in the file - Report(_t("Storing properties in the file '") TSTRFMT _t("'"), strPath.c_str()); + Report(_t("Storing properties in the file '") TSTRFMT _t("'\n"), strPath.c_str()); cfg.write(strPath.c_str()); + // read stored values + Report(_t("Reading properties from the file '") TSTRFMT _t("'\n"), strPath.c_str()); + cfg.read(strPath.c_str()); + + tstring_t strFile2; + pszName=_ttmpnam(NULL); + if(!pszName) + THROW(_t("Cannot generate the temporary file name"), 0, 0, 0); + tstring_t strPath2(_t(".")); + strPath2 += pszName; + strPath += _t("cfg"); + + Report(_t("Storing properties in the file '") TSTRFMT _t("'\n"), strPath2.c_str()); + cfg.write(strPath2.c_str()); + + ReportS(_t("Test finished.\n")); }