return std::wstring(s.begin(), s.end());
}
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) || defined(__MINGW32__)
// Note: these three setenv* functions are not general solutions for the missing
// setenv* problem on VC++. See Microsoft's _putenv for that need, and ticker #7018
// for discussion and rationale for returning void for this test program, which needs
BOOST_TEST(!fs::is_directory(s));
BOOST_TEST(!fs::is_symlink(s));
BOOST_TEST(!fs::is_other(s));
+
+ // ticket #12574 was just user confusion, but are the tests are worth keeping
+ error_code ec;
+ BOOST_TEST(!fs::is_directory(dir / "no-such-directory", ec));
+ BOOST_TEST(ec);
+ //cout << "error_code value: " << ec.value() << endl;
+ ec.clear();
+ BOOST_TEST(!fs::is_directory(dir / "no-such-directory" / "bar", ec));
+ BOOST_TEST(ec);
+ //cout << "error_code value: " << ec.value() << endl;
}
// status_error_reporting_tests ----------------------------------------------------//