Mercurial > hg > orthanc
comparison UnitTests/ServerIndex.cpp @ 266:a08dca15790e
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 07 Dec 2012 13:19:42 +0100 |
parents | 2354560daf2f |
children | 4bc02e2254ec |
comparison
equal
deleted
inserted
replaced
264:5b8e8b74bc8b | 266:a08dca15790e |
---|---|
317 } | 317 } |
318 | 318 |
319 | 319 |
320 TEST(DatabaseWrapper, PatientProtection) | 320 TEST(DatabaseWrapper, PatientProtection) |
321 { | 321 { |
322 Toolbox::RemoveFile("hi.sqlite"); | |
323 ServerIndexListener listener; | 322 ServerIndexListener listener; |
324 DatabaseWrapper index("hi.sqlite", listener); | 323 DatabaseWrapper index(listener); |
325 | 324 |
326 std::vector<int64_t> patients; | 325 std::vector<int64_t> patients; |
327 for (int i = 0; i < 5; i++) | 326 for (int i = 0; i < 5; i++) |
328 { | 327 { |
329 std::string p = "Patient " + boost::lexical_cast<std::string>(i); | 328 std::string p = "Patient " + boost::lexical_cast<std::string>(i); |