| 856 | } |
| 857 | |
| 858 | void |
| 859 | CB_cmd_cache_check() |
| 860 | { |
| 861 | int res = 0; |
| 862 | if (cacheProcessor.IsCacheEnabled() == CACHE_INITIALIZED) { |
| 863 | res = cacheProcessor.dir_check(false) < 0 || res; |
| 864 | cacheProcessor.stop(); |
| 865 | const char *n = "CHECK"; |
| 866 | |
| 867 | if (res) { |
| 868 | printf("\n%s failed", n); |
| 869 | ::exit(1); |
| 870 | } else { |
| 871 | printf("\n%s succeeded\n", n); |
| 872 | ::exit(0); |
| 873 | } |
| 874 | } else if (cacheProcessor.IsCacheEnabled() == CACHE_INIT_FAILED) { |
| 875 | Note("unable to open Cache, Check failed"); |
| 876 | ::exit(1); |
| 877 | } |
| 878 | } |
| 879 | |
| 880 | int |
| 881 | cmd_check_internal(char * /* cmd ATS_UNUSED */, bool fix = false) |
nothing calls this directly
no test coverage detected