From a7e7b72d03a98b7a01d1fdfbe98037ffe6ebcd44 Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Thu, 1 Feb 2024 16:19:47 +0800 Subject: [PATCH] fix(chapi-ast-c): enable CFullIdentListenerTest ignored tests This commit enables the ignored tests in CFullIdentListenerTest, which were previously disabled. The tests include shouldSupportForMacroConcat, shouldHandleMacroInStructure, shouldHandleMacroInFunc, shouldHandleForMacroForBrokenCondition, and should --- .../test/kotlin/chapi/ast/cast/CFullIdentListenerTest.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/chapi-ast-c/src/test/kotlin/chapi/ast/cast/CFullIdentListenerTest.kt b/chapi-ast-c/src/test/kotlin/chapi/ast/cast/CFullIdentListenerTest.kt index fd12c070..8e6a9663 100644 --- a/chapi-ast-c/src/test/kotlin/chapi/ast/cast/CFullIdentListenerTest.kt +++ b/chapi-ast-c/src/test/kotlin/chapi/ast/cast/CFullIdentListenerTest.kt @@ -382,7 +382,6 @@ typedef struct { } @Test - @Ignore fun shouldSupportForMacroConcat() { val code = """ static size_t @@ -415,7 +414,6 @@ typedef struct { } @Test - @Ignore fun shouldHandleMacroInStructure() { val code = """ #define KUMAX(x) ((uintmax_t)x##ULL) @@ -431,7 +429,7 @@ typedef struct { """.trimIndent() val codeFile = CAnalyser().analysis(code, "helloworld.c") - assertEquals(codeFile.DataStructures.size, 1) + assertEquals(codeFile.DataStructures.size, 2) } @Test @@ -473,7 +471,6 @@ typedef struct { } @Test - @Ignore fun shouldHandleMacroInFunc() { val code = """ static const ctl_named_node_t stats_arenas_i_mutexes_node[] = { @@ -514,7 +511,6 @@ typedef struct { } @Test - @Ignore fun shouldHandleForMacroForBrokenCondition() { val code = """ static const ctl_named_node_t stats_mutexes_node[] = { @@ -638,7 +634,6 @@ typedef struct { } @Test - @Ignore fun shouldHandleForMacroInCplusplus() { val code = """ #ifndef HDR_TESTS_H