Skip to content

Commit cd6d335

Browse files
Blackhexgithub-actions
authored andcommitted
0102-Cygwin-testsuite-fixes-for-libgccjit.patch
1 parent 1b8ea8e commit cd6d335

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

gcc/testsuite/jit.dg/jit.exp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ proc jit-dg-test { prog do_what extra_tool_flags } {
495495
# This also ensures that the source name makes it into the
496496
# pass/fail output, so that we can distinguish e.g. which test-foo
497497
# is failing.
498-
set output_file "[file tail $prog].exe"
498+
set output_file "[file tail $prog].xcx"
499499
verbose "output_file: $output_file"
500500

501501
# Create the test executable:
@@ -636,7 +636,7 @@ proc jit-dg-test { prog do_what extra_tool_flags } {
636636
# Verify that a reproducer was generated
637637
if { [file exists $generated_reproducer] == 1} {
638638
pass "found generated reproducer: $generated_reproducer"
639-
set output_file "${generated_reproducer}.exe"
639+
set output_file "${generated_reproducer}.xcx"
640640
# (this overwrites output_file)
641641

642642
# Try to compile the generated reproducer
@@ -810,7 +810,7 @@ proc jit-verify-assembler { args } {
810810

811811
# Name the built executable as OUTPUT_FILENAME with
812812
# ".exe" appended.
813-
set executable_from_asm ${asm_filename}.exe
813+
set executable_from_asm ${asm_filename}.xsx
814814
verbose " executable_from_asm: ${executable_from_asm}"
815815

816816
# Invoke the driver to assemble/link the .s file to the .exe
@@ -952,7 +952,7 @@ proc jit-verify-object { args } {
952952

953953
# Name the linked executable as OUTPUT_FILENAME with
954954
# ".exe" appended.
955-
set executable_from_obj ${obj_filename}.exe
955+
set executable_from_obj ${obj_filename}.xox
956956
verbose " executable_from_obj: ${executable_from_obj}"
957957

958958
# Invoke the driver to link the .o file to the .exe
@@ -1004,7 +1004,7 @@ proc jit-verify-dynamic-library { args } {
10041004
# Build a test executable from
10051005
# verify-dynamic-library.c
10061006
set test_src "verify-dynamic-library.c"
1007-
set test_executable ${test_src}.exe
1007+
set test_executable ${test_src}.xdx
10081008
verbose " test_executable: ${test_executable}"
10091009

10101010
# Invoke the driver to build the test executable

gcc/testsuite/jit.dg/test-compile-to-assembler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
#include "create-code-for-hello-world-executable.h"
1111

1212
/* { dg-final { jit-verify-output-file-was-created "" } } */
13-
/* { dg-final { jit-verify-assembler "hello from ./output-of-test-compile-to-assembler.c.s.exe" } } */
13+
/* { dg-final { jit-verify-assembler "hello from ./output-of-test-compile-to-assembler.c.s.xsx" } } */

gcc/testsuite/jit.dg/test-compile-to-dynamic-library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ create_code (gcc_jit_context *ctxt, void *user_data)
6363
}
6464

6565
/* { dg-final { jit-verify-output-file-was-created "" } } */
66-
/* { dg-final { jit-verify-dynamic-library "hello from ./verify-dynamic-library.c.exe" } } */
66+
/* { dg-final { jit-verify-dynamic-library "hello from ./verify-dynamic-library.c.xdx" } } */

gcc/testsuite/jit.dg/test-compile-to-executable.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
#define TEST_COMPILING_TO_FILE
77
#define OUTPUT_KIND GCC_JIT_OUTPUT_KIND_EXECUTABLE
8-
#define OUTPUT_FILENAME "output-of-test-compile-to-executable.c.exe"
8+
#define OUTPUT_FILENAME "output-of-test-compile-to-executable.c.xcx.exe"
99
#include "harness.h"
1010
#include "create-code-for-hello-world-executable.h"
1111

1212
/* { dg-final { jit-verify-output-file-was-created "" } } */
13-
/* { dg-final { jit-verify-executable "hello from ./output-of-test-compile-to-executable.c.exe" } } */
13+
/* { dg-final { jit-verify-executable "hello from ./output-of-test-compile-to-executable.c.xcx" } } */

gcc/testsuite/jit.dg/test-compile-to-object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
#include "create-code-for-hello-world-executable.h"
1111

1212
/* { dg-final { jit-verify-output-file-was-created "" } } */
13-
/* { dg-final { jit-verify-object "hello from ./output-of-test-compile-to-object.c.o.exe" } } */
13+
/* { dg-final { jit-verify-object "hello from ./output-of-test-compile-to-object.c.o.xox" } } */

0 commit comments

Comments
 (0)