Commit ddc63f2
committed
test: simplify rebuild tests to address nondeterminism
```
---- freshness::rebuild_tests_if_lib_changes stdout ----
running `/home/runner/work/cargo/cargo/target/debug/cargo build`
running `/home/runner/work/cargo/cargo/target/debug/cargo test`
running `/home/runner/work/cargo/cargo/target/debug/cargo build -v`
running `/home/runner/work/cargo/cargo/target/debug/cargo test -v`
error: test failed, to rerun pass `-p cargo --test testsuite`
thread 'freshness::rebuild_tests_if_lib_changes' panicked at tests/testsuite/freshness.rs:633:10:
---- expected: tests/testsuite/freshness.rs:623:27
++++ actual: stderr
1 1 | [DIRTY] foo v0.0.1 ([ROOT]/foo): the dependency foo was rebuilt ([TIME_DIFF_AFTER_LAST_BUILD])
2 2 | [COMPILING] foo v0.0.1 ([ROOT]/foo)
3 3 | [RUNNING] `rustc --crate-name foo [..]
4 - [RUNNING] `rustc --crate-name foo [..]
5 4 | error[E0425]: cannot find function `foo` in crate `foo`
5 + --> tests/foo.rs:4:34
6 6 | ...
7 7 | [ERROR] could not compile `foo` (test "foo") due to 1 previous error
8 8 | ...∅
```1 parent d8a2a61 commit ddc63f2
2 files changed
+14
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
| 604 | + | |
612 | 605 | | |
613 | 606 | | |
614 | 607 | | |
| |||
617 | 610 | | |
618 | 611 | | |
619 | 612 | | |
620 | | - | |
621 | | - | |
622 | | - | |
| 613 | + | |
| 614 | + | |
623 | 615 | | |
624 | 616 | | |
625 | 617 | | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
632 | 622 | | |
633 | 623 | | |
634 | 624 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
765 | 765 | | |
766 | 766 | | |
767 | 767 | | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
| 768 | + | |
776 | 769 | | |
777 | 770 | | |
778 | 771 | | |
| |||
784 | 777 | | |
785 | 778 | | |
786 | 779 | | |
787 | | - | |
| 780 | + | |
788 | 781 | | |
789 | 782 | | |
790 | | - | |
| 783 | + | |
791 | 784 | | |
792 | | - | |
793 | 785 | | |
794 | 786 | | |
795 | 787 | | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
802 | 792 | | |
803 | 793 | | |
804 | 794 | | |
| |||
0 commit comments