-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Parallel inline_tests: expose bug with empty partition list Signed-off-by: Hugo Heuzard <[email protected]> * Parallel inline_tests: Fix when partition list is empty Signed-off-by: Hugo Heuzard <[email protected]> --------- Signed-off-by: Hugo Heuzard <[email protected]> Co-authored-by: Hugo Heuzard <[email protected]>
- Loading branch information
Showing
7 changed files
with
42 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Fix inline_tests when the partition list is empty (#8848, @hhugo) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
test/blackbox-tests/test-cases/inline_tests/parallel.t/test2/test_lib2.ml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
let () = | ||
Fake_backend_runner.register ~libname:"test_lib" ~partition:"p1" "first test" | ||
Fake_backend_runner.register ~libname:"test_lib2" ~partition:"p1" "first test" | ||
(fun () -> assert true) | ||
|
||
let () = | ||
Fake_backend_runner.register ~libname:"test_lib" ~partition:"p1" "second test" | ||
Fake_backend_runner.register ~libname:"test_lib2" ~partition:"p1" "second test" | ||
(fun () -> () ) | ||
|
||
let () = | ||
Fake_backend_runner.register ~libname:"test_lib" ~partition:"p2" "first test" | ||
Fake_backend_runner.register ~libname:"test_lib2" ~partition:"p2" "first test" | ||
(fun () -> ()) | ||
|
||
let () = | ||
Fake_backend_runner.register ~libname:"test_lib" ~partition:"p3" "first test" | ||
Fake_backend_runner.register ~libname:"test_lib2" ~partition:"p3" "first test" | ||
(fun () -> failwith "This failure is expected") | ||
|
||
let () = | ||
Fake_backend_runner.register ~libname:"other_lib" ~partition:"p1" | ||
"second test" (fun () -> assert false) | ||
|
||
let () = | ||
Fake_backend_runner.register ~libname:"other_lib" ~partition:"pn" | ||
"second test" (fun () -> assert false) |
4 changes: 4 additions & 0 deletions
4
test/blackbox-tests/test-cases/inline_tests/parallel.t/test3/dune
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
(library | ||
(name test_lib3) | ||
(libraries fake_backend_runner) | ||
(inline_tests (backend fake_backend_2))) |
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/inline_tests/parallel.t/test3/test_lib3.ml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
let () = | ||
Fake_backend_runner.register ~libname:"other_lib" ~partition:"p1" | ||
"second test" (fun () -> assert false) |