Make actual build happy again
This commit is contained in:
parent
d7612a4426
commit
c882743afa
|
@ -794,13 +794,15 @@ ACTOR Future<Void> runTestOps(Reference<IAsyncFile> f, int numIterations, int fi
|
|||
}
|
||||
|
||||
TEST_CASE("/fdbrpc/AsyncFileKAIO/RequestList") {
|
||||
if(!g_network->isSimulated()) { // This test does nothing in simulation because simulation doesn't support AsyncFileKAIO
|
||||
if (!g_network
|
||||
->isSimulated()) { // This test does nothing in simulation because simulation doesn't support AsyncFileKAIO
|
||||
state Reference<IAsyncFile> f;
|
||||
try {
|
||||
f = wait(AsyncFileKAIO::open(
|
||||
Reference<IAsyncFile> f_ = wait(AsyncFileKAIO::open(
|
||||
"/tmp/__KAIO_TEST_FILE__",
|
||||
IAsyncFile::OPEN_UNBUFFERED | IAsyncFile::OPEN_READWRITE | IAsyncFile::OPEN_CREATE, 0666, nullptr));
|
||||
state int fileSize = 2<<27; // ~100MB
|
||||
f = f_;
|
||||
state int fileSize = 2 << 27; // ~100MB
|
||||
wait(f->truncate(fileSize));
|
||||
|
||||
// Test that the request list works as intended with default timeout
|
||||
|
@ -817,8 +819,7 @@ TEST_CASE("/fdbrpc/AsyncFileKAIO/RequestList") {
|
|||
AsyncFileKAIO::setTimeout(0.0001);
|
||||
wait(runTestOps(f, 10, fileSize, false));
|
||||
ASSERT(((AsyncFileKAIO*)f.getPtr())->failed);
|
||||
}
|
||||
catch(Error &e) {
|
||||
} catch (Error& e) {
|
||||
state Error err = e;
|
||||
if(f) {
|
||||
wait(AsyncFileEIO::deleteFile(f->getFilename(), true));
|
||||
|
|
Loading…
Reference in New Issue