int main(int argc, char *argv[]) { START(argc, argv, "obj_cpp_ptr_arith"); if (argc != 2) UT_FATAL("usage: %s file-name", argv[0]); const char *path = argv[1]; nvobj::pool_base pop; try { pop = nvobj::pool_base::create(path, LAYOUT, PMEMOBJ_MIN_POOL, S_IWUSR | S_IRUSR); } catch (nvml::pool_error &pe) { UT_FATAL("!pool::create: %s %s", pe.what(), path); } test_arith(pop); test_relational(pop); pop.close(); DONE(NULL); }
int sc_main( int, char*[] ) { #if defined(_MSC_VER) && _MSC_VER < 1900 _set_output_format(_TWO_DIGIT_EXPONENT); #endif test_print(); test_constructors(); test_assignment(); test_conversion(); test_relational(); test_arithmetic(); test_SC_ZERO_TIME(); return 0; }