#include #include #include #include "mycpp/runtime.h" namespace test_io_os_error { void run_tests(); void run_benchmarks(); } int main(int argc, char **argv) { gHeap.Init(); char* b = getenv("BENCHMARK"); if (b && strlen(b)) { // match Python's logic fprintf(stderr, "Benchmarking...\n"); test_io_os_error::run_benchmarks(); } else { test_io_os_error::run_tests(); } gHeap.CleanProcessExit(); }