Closed quinox closed 3 years ago
This unexpectedly passes:
$ FlashMQ --test-config -c /dev/null Config OK $ ulimit -m 12345678 $ FlashMQ --test-config -c /dev/zero Config OK
When I modify the code and call infile.exceptions(std::ifstream::failbit | std::ifstream::badbit); after opening infile they fail as expected:
infile.exceptions(std::ifstream::failbit | std::ifstream::badbit);
infile
$ FlashMQ --test-config -c /dev/null basic_ios::clear: iostream error $ FlashMQ --test-config -c /dev/zero std::bad_alloc
Fixed in a general way, by checking for various types of invalid files or files that are too big.
This unexpectedly passes:
When I modify the code and call
infile.exceptions(std::ifstream::failbit | std::ifstream::badbit);
after openinginfile
they fail as expected: