mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-06-05 21:15:20 +00:00
🪲 remove unused AbortFrame (#316)
This commit is contained in:
@@ -251,9 +251,6 @@ class CMockGenerator
|
||||
end
|
||||
|
||||
def create_extern_declarations(file)
|
||||
unless @exclude_setjmp_h
|
||||
file << "extern jmp_buf AbortFrame;\n"
|
||||
end
|
||||
if @ordered
|
||||
file << "extern int GlobalExpectCount;\n"
|
||||
file << "extern int GlobalVerifyOrder;\n"
|
||||
|
||||
@@ -412,8 +412,7 @@ describe CMockGenerator, "Verify CMockGenerator Module" do
|
||||
|
||||
it "create extern declarations for source file" do
|
||||
output = []
|
||||
expected = [ "extern jmp_buf AbortFrame;\n",
|
||||
"\n" ]
|
||||
expected = [ "\n" ]
|
||||
|
||||
@cmock_generator.create_extern_declarations(output)
|
||||
|
||||
@@ -422,8 +421,7 @@ describe CMockGenerator, "Verify CMockGenerator Module" do
|
||||
|
||||
it "create extern declarations for source file when using strict ordering" do
|
||||
output = []
|
||||
expected = [ "extern jmp_buf AbortFrame;\n",
|
||||
"extern int GlobalExpectCount;\n",
|
||||
expected = [ "extern int GlobalExpectCount;\n",
|
||||
"extern int GlobalVerifyOrder;\n",
|
||||
"\n" ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user