From 1cee0908d2a72d2568b2e915e8d619f049dfcf92 Mon Sep 17 00:00:00 2001 From: "Jonathan M. Wilbur" Date: Wed, 31 Jul 2024 04:31:48 -0400 Subject: [PATCH] fix: tests broken by use of assembly --- .../{tests2/133_exec_section_in_asm.c => exec_section_in_asm.c} | 1 + tests/tests2/133_exec_section_in_asm.expect | 1 - .../tests2/{134_exec_section_in_c.c => 133_exec_section_in_c.c} | 0 ...134_exec_section_in_c.expect => 133_exec_section_in_c.expect} | 0 4 files changed, 1 insertion(+), 1 deletion(-) rename tests/{tests2/133_exec_section_in_asm.c => exec_section_in_asm.c} (94%) delete mode 100644 tests/tests2/133_exec_section_in_asm.expect rename tests/tests2/{134_exec_section_in_c.c => 133_exec_section_in_c.c} (100%) rename tests/tests2/{134_exec_section_in_c.expect => 133_exec_section_in_c.expect} (100%) diff --git a/tests/tests2/133_exec_section_in_asm.c b/tests/exec_section_in_asm.c similarity index 94% rename from tests/tests2/133_exec_section_in_asm.c rename to tests/exec_section_in_asm.c index 8f13a418c..671b776a6 100644 --- a/tests/tests2/133_exec_section_in_asm.c +++ b/tests/exec_section_in_asm.c @@ -1,3 +1,4 @@ +/* This test only works on x86-64. */ /* Previously in TinyCC, ELF sections defined in assembly would always have the execute bit not set, so you would get segmentation faults when code in these sections was exectuted. This file is a minimal example of a file that will put diff --git a/tests/tests2/133_exec_section_in_asm.expect b/tests/tests2/133_exec_section_in_asm.expect deleted file mode 100644 index ff342b0e6..000000000 --- a/tests/tests2/133_exec_section_in_asm.expect +++ /dev/null @@ -1 +0,0 @@ -AAAAAAAAA diff --git a/tests/tests2/134_exec_section_in_c.c b/tests/tests2/133_exec_section_in_c.c similarity index 100% rename from tests/tests2/134_exec_section_in_c.c rename to tests/tests2/133_exec_section_in_c.c diff --git a/tests/tests2/134_exec_section_in_c.expect b/tests/tests2/133_exec_section_in_c.expect similarity index 100% rename from tests/tests2/134_exec_section_in_c.expect rename to tests/tests2/133_exec_section_in_c.expect