From 00d465bb4df4a49e07d51ce289142b5fae8ba344 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Mon, 30 Apr 2018 16:55:57 +0200 Subject: [PATCH] syntax-check: Prohibit canonicalize_file_name() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We want to make sure our wrapper is used instead in order to keep the test suite working. Signed-off-by: Andrea Bolognani Reviewed-by: Daniel P. Berrangé --- cfg.mk | 10 ++++++++++ src/util/virfile.c | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cfg.mk b/cfg.mk index c3d18279ce..6bebd0ad9f 100644 --- a/cfg.mk +++ b/cfg.mk @@ -462,6 +462,13 @@ sc_prohibit_ctype_h: halt='use c-ctype.h instead of ctype.h' \ $(_sc_search_regexp) +# We have our own wrapper for mocking purposes +sc_prohibit_canonicalize_file_name: + @prohibit='\