From cbf8fe6dcad5212e998029a13f892e5d61ad30a3 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Thu, 12 Nov 2020 14:56:09 +0000 Subject: [PATCH] Cygwin: Fix 'make check' in utils This has a test of the path translation code used in various utilities (mount, cygpath, strace). MOUNT_BINARY is replaced with the absence of MOUNT_TEXT since 26e0b37e. The issys member of mnt_t struct was removed in b677a99b. > $ make check [...] > total tests: 63 > pass : 63 (100.0%) > fail : 0 (0.0%) --- winsup/utils/Makefile.in | 4 ++-- winsup/utils/path.h | 2 ++ winsup/utils/testsuite.h | 16 ++++++++-------- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/winsup/utils/Makefile.in b/winsup/utils/Makefile.in index a9d66a5ee..46ca13c04 100644 --- a/winsup/utils/Makefile.in +++ b/winsup/utils/Makefile.in @@ -123,9 +123,9 @@ MINGW_BINS += testsuite.exe MINGW_OBJS += path-testsuite.o testsuite.o testsuite.exe: path-testsuite.o path-testsuite.cc: path.cc ; @test -L $@ || ln -sf ${filter %.cc,$^} $@ -path-testsuite.o: MINGW_CXXFLAGS += -DTESTSUITE +path-testsuite.o: MINGW_CXXFLAGS += -DTESTSUITE -Wno-error=write-strings # this is necessary because this .c lives in the build dir instead of src -path-testsuite.o: MINGW_CXX := ${patsubst -I.,-I$(utils_source),$(MINGW_CXX)} +path-testsuite.o: MINGW_CXXFLAGS += -I$(srcdir) path-testsuite.cc path.cc testsuite.cc: testsuite.h check: testsuite.exe ; $(