Skip to content

Commit 833850f

Browse files
committed
flambda-backend: Import testsuite changes to 9e75e07 from 5.2-runtime-wip-main
1 parent 119eebb commit 833850f

File tree

421 files changed

+8714
-13860
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

421 files changed

+8714
-13860
lines changed

testsuite/Makefile

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,7 @@ default:
141141
@echo " ... DIR=d ... the tests located in the directory d"
142142
@echo " ... LIST=f ... the tests listed in the file f (one \
143143
per line)"
144-
<<<<<<< HEAD
145-
@echo " promote-failed promote all the tests that failed in the previous run"
146-
@echo " lib build library modules"
147-
@echo " tools build test tools"
148-
||||||| 121bedcfd2
149-
@echo " lib build library modules"
150-
@echo " tools build test tools"
151-
=======
152-
>>>>>>> 5.2.0
144+
@echo " promote-failed promote all the tests that failed in the previous run"
153145
@echo " clean delete generated files"
154146
@echo " report print the report for the last execution"
155147
@echo

testsuite/lib/dune

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
(library
2+
(wrapped false)
3+
(modes byte native)
4+
(name lib)
5+
(modules lib))
6+
7+
(library
8+
(wrapped false)
9+
(modes byte native)
10+
(name testing)
11+
(flags -linkall)
12+
(modules testing))

testsuite/lib/lib.mli

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
(**************************************************************************)
1515

1616
external raise : exn -> 'a = "%raise"
17+
external with_async_exns : (unit -> 'a) -> 'a = "caml_with_async_exns"
1718

1819
external not : bool -> bool = "%boolnot"
1920

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
1-
<<<<<<< HEAD
2-
(* TEST
3-
reason = "Broken, ask mshinwell if you want to try to fix it";
4-
skip;
5-
||||||| 121bedcfd2
6-
(* TEST (* Just a test-driver *)
7-
* native-compiler
8-
** script
9-
script = "sh ${test_source_directory}/has-afl-fuzz.sh"
10-
readonly_files = "readline.ml"
11-
*** setup-ocamlopt.byte-build-env
12-
**** ocamlopt.byte
13-
program = "${test_build_directory}/readline"
14-
flags = "-afl-instrument"
15-
all_modules = "readline.ml"
16-
***** run
17-
=======
181
(* TEST
2+
reason = "Broken, ask mshinwell if you want to try to fix it";
3+
skip;
194
native-compiler;
205
script = "sh ${test_source_directory}/has-afl-fuzz.sh";
216
readonly_files = "readline.ml";
@@ -26,25 +11,6 @@
2611
all_modules = "readline.ml";
2712
ocamlopt.byte;
2813
run;
29-
>>>>>>> 5.2.0
3014
*)
31-
<<<<<<< HEAD
32-
(* TEST
33-
native-compiler;
34-
script = "sh ${test_source_directory}/has-afl-fuzz.sh";
35-
readonly_files = "readline.ml";
36-
script;
37-
setup-ocamlopt.byte-build-env;
38-
program = "${test_build_directory}/readline";
39-
flags = "-afl-instrument";
40-
all_modules = "readline.ml";
41-
ocamlopt.byte;
42-
run;
43-
*)
44-
45-
(* No code here, this file is a pure test script. *)
46-
||||||| 121bedcfd2
47-
=======
4815

4916
(* No code here, this file is a pure test script. *)
50-
>>>>>>> 5.2.0

testsuite/tests/arch-power/exn_raise.ml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
11
(* TEST
2-
<<<<<<< HEAD
32
arch_power;
43
native;
5-
ocamlopt_flags = "-flarge-toc";
64
ocamlopt.byte;
75
run;
8-
||||||| 121bedcfd2
9-
* arch_power
10-
** native
11-
*** ocamlopt.byte
12-
ocamlopt_flags = "-flarge-toc"
13-
**** run
14-
=======
15-
arch_power;
16-
native;
17-
ocamlopt.byte;
18-
run;
19-
>>>>>>> 5.2.0
206
*)
217

228
(* GPR#8506
Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<<<<<<< HEAD
21
(* TEST_BELOW
32
(* Blank lines added here to preserve locations. *)
43
@@ -9,23 +8,6 @@
98
109
1110
12-
||||||| 121bedcfd2
13-
(* TEST
14-
* setup-ocamlopt.byte-build-env
15-
** ocamlopt.byte
16-
ocamlopt_byte_exit_status = "2"
17-
*** check-ocamlopt.byte-output
18-
=======
19-
(* TEST_BELOW
20-
(* Blank lines added here to preserve locations. *)
21-
22-
23-
24-
25-
26-
27-
28-
>>>>>>> 5.2.0
2911
3012
*)
3113

@@ -38,7 +20,6 @@ let[@poll error] c x =
3820
ignore(Sys.opaque_identity(42))
3921
done;
4022
x2 + !y
41-
<<<<<<< HEAD
4223

4324
(* TEST
4425
poll-insertion;
@@ -54,20 +35,3 @@ let[@poll error] c x =
5435
check-ocamlopt.opt-output;
5536
}
5637
*)
57-
||||||| 121bedcfd2
58-
=======
59-
60-
(* TEST
61-
{
62-
setup-ocamlopt.byte-build-env;
63-
ocamlopt_byte_exit_status = "2";
64-
ocamlopt.byte;
65-
check-ocamlopt.byte-output;
66-
}{
67-
setup-ocamlopt.opt-build-env;
68-
ocamlopt_opt_exit_status = "2";
69-
ocamlopt.opt;
70-
check-ocamlopt.opt-output;
71-
}
72-
*)
73-
>>>>>>> 5.2.0

testsuite/tests/asmcomp/poll_attr_inserted.ml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
(* TEST
2-
<<<<<<< HEAD
32
poll-insertion;
43
{
54
setup-ocamlopt.byte-build-env;
@@ -12,29 +11,6 @@
1211
ocamlopt.opt;
1312
check-ocamlopt.opt-output;
1413
}
15-
||||||| 121bedcfd2
16-
* setup-ocamlopt.byte-build-env
17-
** ocamlopt.byte
18-
ocamlopt_byte_exit_status = "2"
19-
*** check-ocamlopt.byte-output
20-
21-
* setup-ocamlopt.opt-build-env
22-
** ocamlopt.opt
23-
ocamlopt_opt_exit_status = "2"
24-
*** check-ocamlopt.opt-output
25-
=======
26-
{
27-
setup-ocamlopt.byte-build-env;
28-
ocamlopt_byte_exit_status = "2";
29-
ocamlopt.byte;
30-
check-ocamlopt.byte-output;
31-
}{
32-
setup-ocamlopt.opt-build-env;
33-
ocamlopt_opt_exit_status = "2";
34-
ocamlopt.opt;
35-
check-ocamlopt.opt-output;
36-
}
37-
>>>>>>> 5.2.0
3814
*)
3915

4016
let[@poll error] c x =
Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<<<<<<< HEAD
21
(* TEST_BELOW
32
(* Blank lines added here to preserve locations. *)
43
@@ -9,31 +8,13 @@
98
109
1110
12-
||||||| 121bedcfd2
13-
(* TEST
14-
* setup-ocamlopt.byte-build-env
15-
** ocamlopt.byte
16-
ocamlopt_byte_exit_status = "2"
17-
*** check-ocamlopt.byte-output
18-
=======
19-
(* TEST_BELOW
20-
(* Blank lines added here to preserve locations. *)
21-
22-
23-
24-
25-
26-
27-
28-
>>>>>>> 5.2.0
2911
3012
*)
3113

3214
let[@poll error] rec c x l =
3315
match l with
3416
| [] -> 0
3517
| _ :: tl -> (c[@tailcall]) (x+1) tl
36-
<<<<<<< HEAD
3718

3819
(* TEST
3920
poll-insertion;
@@ -49,20 +30,3 @@ let[@poll error] rec c x l =
4930
check-ocamlopt.opt-output;
5031
}
5132
*)
52-
||||||| 121bedcfd2
53-
=======
54-
55-
(* TEST
56-
{
57-
setup-ocamlopt.byte-build-env;
58-
ocamlopt_byte_exit_status = "2";
59-
ocamlopt.byte;
60-
check-ocamlopt.byte-output;
61-
}{
62-
setup-ocamlopt.opt-build-env;
63-
ocamlopt_opt_exit_status = "2";
64-
ocamlopt.opt;
65-
check-ocamlopt.opt-output;
66-
}
67-
*)
68-
>>>>>>> 5.2.0
Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<<<<<<< HEAD
21
(* TEST_BELOW
32
(* Blank lines added here to preserve locations. *)
43
@@ -9,23 +8,6 @@
98
109
1110
12-
||||||| 121bedcfd2
13-
(* TEST
14-
* setup-ocamlopt.byte-build-env
15-
** ocamlopt.byte
16-
ocamlopt_byte_exit_status = "2"
17-
*** check-ocamlopt.byte-output
18-
=======
19-
(* TEST_BELOW
20-
(* Blank lines added here to preserve locations. *)
21-
22-
23-
24-
25-
26-
27-
28-
>>>>>>> 5.2.0
2911
3012
*)
3113

@@ -38,7 +20,6 @@ let[@poll error] c x =
3820
ignore(Sys.opaque_identity(ref 42))
3921
done;
4022
x2 + !y
41-
<<<<<<< HEAD
4223

4324
(* TEST
4425
poll-insertion;
@@ -54,20 +35,3 @@ let[@poll error] c x =
5435
check-ocamlopt.opt-output;
5536
}
5637
*)
57-
||||||| 121bedcfd2
58-
=======
59-
60-
(* TEST
61-
{
62-
setup-ocamlopt.byte-build-env;
63-
ocamlopt_byte_exit_status = "2";
64-
ocamlopt.byte;
65-
check-ocamlopt.byte-output;
66-
}{
67-
setup-ocamlopt.opt-build-env;
68-
ocamlopt_opt_exit_status = "2";
69-
ocamlopt.opt;
70-
check-ocamlopt.opt-output;
71-
}
72-
*)
73-
>>>>>>> 5.2.0

testsuite/tests/asmcomp/polling_insertion.ml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
11
(* TEST
2-
<<<<<<< HEAD
32
modules = "polling.c";
43
compare_programs = "false";
54
poll-insertion;
65
arch64;
76
native;
8-
||||||| 121bedcfd2
9-
modules = "polling.c"
10-
compare_programs = "false"
11-
* arch64
12-
** native
13-
=======
14-
modules = "polling.c";
15-
compare_programs = "false";
16-
arch64;
17-
native;
18-
>>>>>>> 5.2.0
197
*)
208

219
(* This set of tests examine poll insertion behaviour. We do this by requesting

0 commit comments

Comments
 (0)