mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix test cases that recently regressed
Recently new extensions were added to CDT for C++ modules in #422 At the time some test failures were not noticed. This change patches those failing tests. Fixes #454
This commit is contained in:
parent
4c7dd6921a
commit
e725b88951
6 changed files with 35 additions and 1 deletions
|
@ -3,9 +3,12 @@
|
|||
################################################################################
|
||||
|
||||
ASM_SRCS :=
|
||||
C++M_SRCS :=
|
||||
C++_SRCS :=
|
||||
CCM_SRCS :=
|
||||
CC_SRCS :=
|
||||
CPP_SRCS :=
|
||||
CXXM_SRCS :=
|
||||
CXX_SRCS :=
|
||||
C_UPPER_SRCS :=
|
||||
LOG_SRCS :=
|
||||
|
|
|
@ -18,15 +18,24 @@ RM := rm -rf
|
|||
-include d1/subdir.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C++M_DEPS)),)
|
||||
-include $(C++M_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C++_DEPS)),)
|
||||
-include $(C++_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CCM_DEPS)),)
|
||||
-include $(CCM_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CC_DEPS)),)
|
||||
-include $(CC_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CPP_DEPS)),)
|
||||
-include $(CPP_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CXXM_DEPS)),)
|
||||
-include $(CXXM_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CXX_DEPS)),)
|
||||
-include $(CXX_DEPS)
|
||||
endif
|
||||
|
|
|
@ -3,18 +3,24 @@
|
|||
################################################################################
|
||||
|
||||
ASM_SRCS :=
|
||||
C++M_SRCS :=
|
||||
C++_SRCS :=
|
||||
CCM_SRCS :=
|
||||
CC_SRCS :=
|
||||
CPP_SRCS :=
|
||||
CXXM_SRCS :=
|
||||
CXX_SRCS :=
|
||||
C_SRCS :=
|
||||
C_UPPER_SRCS :=
|
||||
OBJ_SRCS :=
|
||||
O_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
C++M_DEPS :=
|
||||
C++_DEPS :=
|
||||
CCM_DEPS :=
|
||||
CC_DEPS :=
|
||||
CPP_DEPS :=
|
||||
CXXM_DEPS :=
|
||||
CXX_DEPS :=
|
||||
C_DEPS :=
|
||||
C_UPPER_DEPS :=
|
||||
|
|
|
@ -18,15 +18,24 @@ RM := rm -rf
|
|||
-include d1/subdir.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C++M_DEPS)),)
|
||||
-include $(C++M_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C++_DEPS)),)
|
||||
-include $(C++_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CCM_DEPS)),)
|
||||
-include $(CCM_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CC_DEPS)),)
|
||||
-include $(CC_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CPP_DEPS)),)
|
||||
-include $(CPP_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CXXM_DEPS)),)
|
||||
-include $(CXXM_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CXX_DEPS)),)
|
||||
-include $(CXX_DEPS)
|
||||
endif
|
||||
|
|
|
@ -3,18 +3,24 @@
|
|||
################################################################################
|
||||
|
||||
ASM_SRCS :=
|
||||
C++M_SRCS :=
|
||||
C++_SRCS :=
|
||||
CCM_SRCS :=
|
||||
CC_SRCS :=
|
||||
CPP_SRCS :=
|
||||
CXXM_SRCS :=
|
||||
CXX_SRCS :=
|
||||
C_SRCS :=
|
||||
C_UPPER_SRCS :=
|
||||
OBJ_SRCS :=
|
||||
O_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
C++M_DEPS :=
|
||||
C++_DEPS :=
|
||||
CCM_DEPS :=
|
||||
CC_DEPS :=
|
||||
CPP_DEPS :=
|
||||
CXXM_DEPS :=
|
||||
CXX_DEPS :=
|
||||
C_DEPS :=
|
||||
C_UPPER_DEPS :=
|
||||
|
|
|
@ -57,7 +57,8 @@ public class ManagedBuilderPreconditionsTests extends BaseTestCase {
|
|||
IContentType contentTypeC = manager.getContentType(CCorePlugin.CONTENT_TYPE_CSOURCE);
|
||||
fileExts.addAll(Arrays.asList(contentTypeC.getFileSpecs(IContentType.FILE_EXTENSION_SPEC)));
|
||||
|
||||
Set<String> expectedExts = new TreeSet<>(Arrays.asList(new String[] { "C", "c", "c++", "cc", "cpp", "cxx" }));
|
||||
Set<String> expectedExts = new TreeSet<>(
|
||||
Arrays.asList(new String[] { "C", "c", "c++", "cc", "cpp", "cxx", "ccm", "cxxm", "c++m" }));
|
||||
assertEquals("Precodition FAILED - Content Types do not match expected defaults.", expectedExts.toString(),
|
||||
fileExts.toString());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue