summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorYoshimasa Niwa <niw@niw.at>2021-04-28 11:20:35 -0700
committerGitHub <noreply@github.com>2021-04-28 20:20:35 +0200
commit97f42b963e1d82f038990e11cc81c21bd7743011 (patch)
tree71215833bcf11b72c7fd0cd39dc53576fe41d6da /unittest
parentaa7fd27609bea5ec78fd85afaec297d028119ee0 (diff)
downloadccache-97f42b963e1d82f038990e11cc81c21bd7743011.tar.gz
Ignore -ivfsoverlay parameter (#839)
Co-authored-by: Peter Steinberger <steipete@gmail.com>
Diffstat (limited to 'unittest')
-rw-r--r--unittest/test_Config.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/unittest/test_Config.cpp b/unittest/test_Config.cpp
index fad4ff42..e509c9ce 100644
--- a/unittest/test_Config.cpp
+++ b/unittest/test_Config.cpp
@@ -128,7 +128,7 @@ TEST_CASE("Config::update_from_file")
"run_second_cpp = false\n"
"sloppiness = time_macros ,include_file_mtime"
" include_file_ctime,file_stat_matches,file_stat_matches_ctime,pch_defines"
- " , no_system_headers,system_headers,clang_index_store\n"
+ " , no_system_headers,system_headers,clang_index_store,ivfsoverlay\n"
"stats = false\n"
"temporary_dir = ${USER}_foo\n"
"umask = 777"); // Note: no newline.
@@ -169,7 +169,8 @@ TEST_CASE("Config::update_from_file")
== (SLOPPY_INCLUDE_FILE_MTIME | SLOPPY_INCLUDE_FILE_CTIME
| SLOPPY_TIME_MACROS | SLOPPY_FILE_STAT_MATCHES
| SLOPPY_FILE_STAT_MATCHES_CTIME | SLOPPY_SYSTEM_HEADERS
- | SLOPPY_PCH_DEFINES | SLOPPY_CLANG_INDEX_STORE));
+ | SLOPPY_PCH_DEFINES | SLOPPY_CLANG_INDEX_STORE
+ | SLOPPY_IVFSOVERLAY));
CHECK_FALSE(config.stats());
CHECK(config.temporary_dir() == FMT("{}_foo", user));
CHECK(config.umask() == 0777);
@@ -402,7 +403,7 @@ TEST_CASE("Config::visit_items")
"run_second_cpp = false\n"
"sloppiness = include_file_mtime, include_file_ctime, time_macros,"
" file_stat_matches, file_stat_matches_ctime, pch_defines, system_headers,"
- " clang_index_store\n"
+ " clang_index_store, ivfsoverlay\n"
"stats = false\n"
"temporary_dir = td\n"
"umask = 022\n");
@@ -459,7 +460,7 @@ TEST_CASE("Config::visit_items")
"(test.conf) run_second_cpp = false",
"(test.conf) sloppiness = include_file_mtime, include_file_ctime,"
" time_macros, pch_defines, file_stat_matches, file_stat_matches_ctime,"
- " system_headers, clang_index_store",
+ " system_headers, clang_index_store, ivfsoverlay",
"(test.conf) stats = false",
"(test.conf) temporary_dir = td",
"(test.conf) umask = 022",