Searched refs:makeScopeGuard (Results 1 – 7 of 7) sorted by relevance
35 auto guard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in TEST()46 auto errorGuard = makeScopeGuard([&] { in TEST()70 auto guard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in TEST()81 auto errorGuard = makeScopeGuard([&] { in TEST()104 auto guard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in TEST()111 auto closeGuard = makeScopeGuard([&] { std::fclose(fd); }); in TEST()134 auto guard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in TEST()
32 auto guard = makeScopeGuard([&] { std::fclose(fd); }); in writeData()67 auto newlineGuard = makeScopeGuard([] { std::fprintf(stderr, "\n"); }); in main()73 auto inputGuard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in main()
28 auto guard = makeScopeGuard([&] { in check()64 auto guard = makeScopeGuard([&] { in roundTrip()
170 auto printErrorGuard = makeScopeGuard([&] { in pzstdMain()182 auto closeInputGuard = makeScopeGuard([&] { std::fclose(inputFd); }); in pzstdMain()193 auto closeOutputGuard = makeScopeGuard([&] { std::fclose(outputFd); }); in pzstdMain()270 auto guard = makeScopeGuard([&] { out->finish(); }); in compress()385 auto chunksGuard = makeScopeGuard([&] { chunks.finish(); }); in asyncCompressChunks()396 auto inGuard = makeScopeGuard([&] { in->finish(); }); in asyncCompressChunks()428 auto guard = makeScopeGuard([&] { out->finish(); }); in decompress()497 auto framesGuard = makeScopeGuard([&] { frames.finish(); }); in asyncDecompressFrames()509 auto inGuard = makeScopeGuard([&] { in->finish(); }); in asyncDecompressFrames()575 auto lineClearGuard = makeScopeGuard([&state] { in writeFile()
346 makeScopeGuard([&] { UTIL_freeFileNamesTable(files); }); in parse()
17 auto guard = makeScopeGuard([&] { EXPECT_TRUE(false); }); in TEST()25 auto guard = makeScopeGuard([&] { executed = true; }); in TEST()
47 ScopeGuard<Function> makeScopeGuard(Function&& function) { in makeScopeGuard() function