summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/kernel/cache-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sca-cpp/trunk/kernel/cache-test.cpp (renamed from sca-cpp/trunk/modules/cache/diskcache-test.cpp)8
1 files changed, 3 insertions, 5 deletions
diff --git a/sca-cpp/trunk/modules/cache/diskcache-test.cpp b/sca-cpp/trunk/kernel/cache-test.cpp
index 3b21de7b9e..5391d38cf6 100644
--- a/sca-cpp/trunk/modules/cache/diskcache-test.cpp
+++ b/sca-cpp/trunk/kernel/cache-test.cpp
@@ -33,7 +33,6 @@
#include "cache.hpp"
namespace tuscany {
-namespace cache {
const std::string fileRead(const std::string path) {
std::ifstream is(path);
@@ -51,7 +50,7 @@ bool testCache() {
std::ofstream os(p);
os << "initial";
os.close();
- assert(std::string(latest(c)) == std::string("initial"));
+ assert(content(latest(c)) == std::string("initial"));
}
usleep(1000000);
@@ -61,19 +60,18 @@ bool testCache() {
os << "updated";
os.close();
assert(latest(c) != c);
- assert(std::string(latest(c)) == std::string("updated"));
+ assert(content(latest(c)) == std::string("updated"));
assert(latest(c) == latest(c));
}
return true;
}
}
-}
int main() {
std::cout << "Testing..." << std::endl;
- tuscany::cache::testCache();
+ tuscany::testCache();
std::cout << "OK" << std::endl;