Commit 5250372a authored by Andreas Schuh's avatar Andreas Schuh

Fix conditional compilation of tests using glob expressions.

parent 9d686e71
......@@ -408,7 +408,7 @@ TEST(FlagFileTest, FilenamesOurfileFirst) {
-1.0);
}
#if HAVE_FNMATCH_H // otherwise glob isn't supported
#if defined(HAVE_FNMATCH_H) || (defined(_MSC_VER) && defined(HAVE_SHLWAPI_H)) // otherwise glob isn't supported
TEST(FlagFileTest, FilenamesOurfileGlob) {
FLAGS_test_string = "initial";
FLAGS_test_bool = false;
......@@ -460,7 +460,7 @@ TEST(FlagFileTest, FilenamesOurfileInBigList) {
1,
-1.0);
}
#endif // ifdef HAVE_FNMATCH_H
#endif // defined(HAVE_FNMATCH_H) || (defined(_MSC_VER) && defined(HAVE_SHLWAPI_H))
// Tests that a failed flag-from-string read keeps flags at default values
TEST(FlagFileTest, FailReadFlagsFromString) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment