Skip to content

Commit 216e3e9

Browse files
adpaco-awstedinski
authored andcommitted
Fix out-by-one errors in cargo-rmc-tests and run-make tests (rust-lang#17)
1 parent aa53e41 commit 216e3e9

File tree

33 files changed

+194
-194
lines changed

33 files changed

+194
-194
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[test_one_plus_two.assertion.1] line 30 assertion failed: p.sum() == 3: SUCCESS
1+
[test_one_plus_two.assertion.1] line 31 assertion failed: p.sum() == 3: SUCCESS
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[test_sum.assertion.1] line 26 assertion failed: p.sum() == a.wrapping_add(b): SUCCESS
1+
[test_sum.assertion.1] line 27 assertion failed: p.sum() == a.wrapping_add(b): SUCCESS
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
line 7 assertion failed: foo() == None: SUCCESS
2-
line 10 assertion failed: foo() == y: SUCCESS
1+
line 8 assertion failed: foo() == None: SUCCESS
2+
line 11 assertion failed: foo() == y: SUCCESS

src/test/run-make/gotoc-array/expected

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ array 'y'.0 upper bound in y.0[var_12]: SUCCESS
33
array 'y'.0 upper bound in y.0[var_16]: FAILURE
44
array 'x'.0 upper bound in x.0[var_3]: SUCCESS
55
array 'x'.0 upper bound in x.0[var_5]: SUCCESS
6-
line 10 assertion failed: y[0] == 1: SUCCESS
7-
line 11 assertion failed: y[1] == 2: SUCCESS
8-
line 12 index out of bounds: the length is move _17 but the index is _16: FAILURE
9-
line 12 assertion failed: y[z] == 3: FAILURE
6+
line 11 assertion failed: y[0] == 1: SUCCESS
7+
line 12 assertion failed: y[1] == 2: SUCCESS
8+
line 13 index out of bounds: the length is move _17 but the index is _16: FAILURE
9+
line 13 assertion failed: y[z] == 3: FAILURE
Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
line 3 attempt to compute `move _8 + move _9`, which would overflow: SUCCESS
2-
line 3 assertion failed: a + b == correct: SUCCESS
3-
line 4 attempt to compute `move _15 + move _16`, which would overflow: SUCCESS
4-
line 4 assertion failed: a + b == wrong: FAILURE
5-
line 8 attempt to compute `move _8 - move _9`, which would overflow: SUCCESS
6-
line 8 assertion failed: a - b == correct: SUCCESS
7-
line 9 attempt to compute `move _15 - move _16`, which would overflow: SUCCESS
8-
line 9 assertion failed: a - b == wrong: FAILURE
9-
line 13 attempt to compute `move _8 * move _9`, which would overflow: SUCCESS
10-
line 13 assertion failed: a * b == correct: SUCCESS
11-
line 14 attempt to compute `move _15 * move _16`, which would overflow: SUCCESS
12-
line 14 assertion failed: a * b == wrong: FAILURE
13-
line 18 attempt to divide `_8` by zero: SUCCESS
14-
line 18 attempt to compute `_8 / _9`, which would overflow: SUCCESS
15-
line 18 assertion failed: a / b == correct: SUCCESS
16-
line 19 attempt to divide `_18` by zero: SUCCESS
17-
line 19 attempt to compute `_18 / _19`, which would overflow: SUCCESS
18-
line 19 assertion failed: a / b == wrong: FAILURE
19-
line 23 attempt to calculate the remainder of `_8` with a divisor of zero: SUCCESS
20-
line 23 attempt to compute the remainder of `_8 % _9`, which would overflow: SUCCESS
21-
line 23 assertion failed: a % b == correct: SUCCESS
22-
line 24 attempt to calculate the remainder of `_18` with a divisor of zero: SUCCESS
23-
line 24 attempt to compute the remainder of `_18 % _19`, which would overflow: SUCCESS
24-
line 24 assertion failed: a % b == wrong: FAILURE
25-
line 28 attempt to shift left by `move _9`, which would overflow: SUCCESS
26-
line 28 assertion failed: a << b == correct: SUCCESS
27-
line 29 attempt to shift left by `move _16`, which would overflow: SUCCESS
28-
line 29 assertion failed: a << b == wrong: FAILURE
29-
line 33 attempt to shift right by `move _9`, which would overflow: SUCCESS
30-
line 33 assertion failed: a >> b == correct: SUCCESS
31-
line 34 attempt to shift right by `move _16`, which would overflow: SUCCESS
32-
line 34 assertion failed: a >> b == wrong: FAILURE
33-
line 38 attempt to shift right by `move _9`, which would overflow: SUCCESS
34-
line 38 assertion failed: a >> b == correct: SUCCESS
35-
line 39 attempt to shift right by `move _16`, which would overflow: SUCCESS
36-
line 39 assertion failed: a >> b == wrong: FAILURE
37-
line 43 assertion failed: a & b == correct: SUCCESS
38-
line 44 assertion failed: a & b == wrong: FAILURE
39-
line 48 assertion failed: a | b == correct: SUCCESS
40-
line 49 assertion failed: a | b == wrong: FAILURE
41-
line 53 assertion failed: a ^ b == correct: SUCCESS
42-
line 54 assertion failed: a ^ b == wrong: FAILURE
1+
line 4 attempt to compute `move _8 + move _9`, which would overflow: SUCCESS
2+
line 4 assertion failed: a + b == correct: SUCCESS
3+
line 5 attempt to compute `move _15 + move _16`, which would overflow: SUCCESS
4+
line 5 assertion failed: a + b == wrong: FAILURE
5+
line 9 attempt to compute `move _8 - move _9`, which would overflow: SUCCESS
6+
line 9 assertion failed: a - b == correct: SUCCESS
7+
line 10 attempt to compute `move _15 - move _16`, which would overflow: SUCCESS
8+
line 10 assertion failed: a - b == wrong: FAILURE
9+
line 14 attempt to compute `move _8 * move _9`, which would overflow: SUCCESS
10+
line 14 assertion failed: a * b == correct: SUCCESS
11+
line 15 attempt to compute `move _15 * move _16`, which would overflow: SUCCESS
12+
line 15 assertion failed: a * b == wrong: FAILURE
13+
line 19 attempt to divide `_8` by zero: SUCCESS
14+
line 19 attempt to compute `_8 / _9`, which would overflow: SUCCESS
15+
line 19 assertion failed: a / b == correct: SUCCESS
16+
line 20 attempt to divide `_18` by zero: SUCCESS
17+
line 20 attempt to compute `_18 / _19`, which would overflow: SUCCESS
18+
line 20 assertion failed: a / b == wrong: FAILURE
19+
line 24 attempt to calculate the remainder of `_8` with a divisor of zero: SUCCESS
20+
line 24 attempt to compute the remainder of `_8 % _9`, which would overflow: SUCCESS
21+
line 24 assertion failed: a % b == correct: SUCCESS
22+
line 25 attempt to calculate the remainder of `_18` with a divisor of zero: SUCCESS
23+
line 25 attempt to compute the remainder of `_18 % _19`, which would overflow: SUCCESS
24+
line 25 assertion failed: a % b == wrong: FAILURE
25+
line 29 attempt to shift left by `move _9`, which would overflow: SUCCESS
26+
line 29 assertion failed: a << b == correct: SUCCESS
27+
line 30 attempt to shift left by `move _16`, which would overflow: SUCCESS
28+
line 30 assertion failed: a << b == wrong: FAILURE
29+
line 34 attempt to shift right by `move _9`, which would overflow: SUCCESS
30+
line 34 assertion failed: a >> b == correct: SUCCESS
31+
line 35 attempt to shift right by `move _16`, which would overflow: SUCCESS
32+
line 35 assertion failed: a >> b == wrong: FAILURE
33+
line 39 attempt to shift right by `move _9`, which would overflow: SUCCESS
34+
line 39 assertion failed: a >> b == correct: SUCCESS
35+
line 40 attempt to shift right by `move _16`, which would overflow: SUCCESS
36+
line 40 assertion failed: a >> b == wrong: FAILURE
37+
line 44 assertion failed: a & b == correct: SUCCESS
38+
line 45 assertion failed: a & b == wrong: FAILURE
39+
line 49 assertion failed: a | b == correct: SUCCESS
40+
line 50 assertion failed: a | b == wrong: FAILURE
41+
line 54 assertion failed: a ^ b == correct: SUCCESS
42+
line 55 assertion failed: a ^ b == wrong: FAILURE
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
resume instruction: SUCCESS
2-
line 20 attempt to compute `move _8 + move _9`, which would overflow: SUCCESS
3-
line 20 attempt to compute `move _5 + move _6`, which would overflow: SUCCESS
4-
line 20 attempt to compute `(*((*_1).0: &mut i32)) + move _4`, which would overflow: SUCCESS
5-
line 25 attempt to compute `move _18 + const 12_i32`, which would overflow: SUCCESS
6-
line 25 assertion failed: original_num + 12 == num: SUCCESS
7-
line 25 arithmetic overflow on signed + in var_18 + 12: SUCCESS
2+
line 21 attempt to compute `move _8 + move _9`, which would overflow: SUCCESS
3+
line 21 attempt to compute `move _5 + move _6`, which would overflow: SUCCESS
4+
line 21 attempt to compute `(*((*_1).0: &mut i32)) + move _4`, which would overflow: SUCCESS
5+
line 26 attempt to compute `move _18 + const 12_i32`, which would overflow: SUCCESS
6+
line 26 assertion failed: original_num + 12 == num: SUCCESS
7+
line 26 arithmetic overflow on signed + in var_18 + 12: SUCCESS
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
line 4 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS
2-
line 6 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS
3-
line 7 assertion failed: z == 102: SUCCESS
4-
line 8 assertion failed: g(z) == 206: SUCCESS
1+
line 5 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS
2+
line 7 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS
3+
line 8 assertion failed: z == 102: SUCCESS
4+
line 9 assertion failed: g(z) == 206: SUCCESS
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
line 17 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS
2-
line 18 attempt to compute `move _11 + const 10_i64`, which would overflow: SUCCESS
3-
line 18 assertion failed: num + 10 == y: SUCCESS
1+
line 18 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS
2+
line 19 attempt to compute `move _11 + const 10_i64`, which would overflow: SUCCESS
3+
line 19 assertion failed: num + 10 == y: SUCCESS
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
line 4 attempt to compute `move _6 + move _7`, which would overflow: SUCCESS
2-
line 4 attempt to compute `move _10 + move _11`, which would overflow: SUCCESS
3-
line 4 assertion failed: a + b == b + a: SUCCESS
4-
line 5 attempt to compute `move _16 + move _17`, which would overflow: SUCCESS
5-
line 5 attempt to compute `move _21 + move _22`, which would overflow: SUCCESS
6-
line 5 attempt to compute `move _20 + const 1_i32`, which would overflow: SUCCESS
7-
line 5 assertion failed: a + b != a + b + 1: SUCCESS
8-
line 10 attempt to compute `move _6 + move _7`, which would overflow: SUCCESS
9-
line 10 assertion failed: a + b > a: SUCCESS
10-
line 11 attempt to compute `move _13 - move _14`, which would overflow: SUCCESS
11-
line 11 assertion failed: a - b < a: SUCCESS
1+
line 5 attempt to compute `move _6 + move _7`, which would overflow: SUCCESS
2+
line 5 attempt to compute `move _10 + move _11`, which would overflow: SUCCESS
3+
line 5 assertion failed: a + b == b + a: SUCCESS
4+
line 6 attempt to compute `move _16 + move _17`, which would overflow: SUCCESS
5+
line 6 attempt to compute `move _21 + move _22`, which would overflow: SUCCESS
6+
line 6 attempt to compute `move _20 + const 1_i32`, which would overflow: SUCCESS
7+
line 6 assertion failed: a + b != a + b + 1: SUCCESS
8+
line 11 attempt to compute `move _6 + move _7`, which would overflow: SUCCESS
9+
line 11 assertion failed: a + b > a: SUCCESS
10+
line 12 attempt to compute `move _13 - move _14`, which would overflow: SUCCESS
11+
line 12 assertion failed: a - b < a: SUCCESS
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
line 24 assertion failed: bar.a() == 3: SUCCESS
2-
line 25 assertion failed: bar.b() == 5: SUCCESS
1+
line 25 assertion failed: bar.a() == 3: SUCCESS
2+
line 26 assertion failed: bar.b() == 5: SUCCESS

0 commit comments

Comments
 (0)