Skip to content

Commit 66c98ee

Browse files
committed
Fix more tests
1 parent 3bb74ff commit 66c98ee

7 files changed

+9
-27
lines changed

tests/assembly/asm/aarch64-modifiers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// assembly-output: emit-asm
2-
// compile-flags: -O
2+
// compile-flags: -O -C panic=abort
33
// compile-flags: --target aarch64-unknown-linux-gnu
44
// needs-llvm-components: aarch64
55

tests/assembly/asm/arm-modifiers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// assembly-output: emit-asm
2-
// compile-flags: -O
2+
// compile-flags: -O -C panic=abort
33
// compile-flags: --target armv7-unknown-linux-gnueabihf
44
// compile-flags: -C target-feature=+neon
55
// needs-llvm-components: arm

tests/assembly/asm/x86-modifiers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// revisions: x86_64 i686
22
// assembly-output: emit-asm
3-
// compile-flags: -O
3+
// compile-flags: -O -C panic=abort
44
//[x86_64] compile-flags: --target x86_64-unknown-linux-gnu
55
//[x86_64] needs-llvm-components: x86
66
//[i686] compile-flags: --target i686-unknown-linux-gnu

tests/codegen/avr/avr-func-addrspace.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -O --target=avr-unknown-gnu-atmega328 --crate-type=rlib
1+
// compile-flags: -O --target=avr-unknown-gnu-atmega328 --crate-type=rlib -C panic=abort
22
// needs-llvm-components: avr
33

44
// This test validates that function pointers can be stored in global variables

tests/codegen/debuginfo-inline-callsite-location.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#![crate_type = "lib"]
2121

2222
#[no_mangle]
23-
extern "C" fn add_numbers(x: &Option<i32>, y: &Option<i32>) -> i32 {
23+
extern "C-unwind" fn add_numbers(x: &Option<i32>, y: &Option<i32>) -> i32 {
2424
let x1 = x.unwrap();
2525
let y1 = y.unwrap();
2626

tests/codegen/unwind-abis/nounwind-on-stable-panic-unwind.rs

-18
This file was deleted.

tests/coverage/abort.cov-map

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Function name: abort::main
2-
Raw bytes (105): 0x[01, 01, 12, 01, 47, 05, 09, 03, 0d, 42, 11, 03, 0d, 11, 3e, 42, 11, 03, 0d, 3b, 15, 11, 3e, 42, 11, 03, 0d, 15, 36, 3b, 15, 11, 3e, 42, 11, 03, 0d, 05, 09, 0d, 01, 0d, 01, 01, 1b, 03, 02, 0b, 00, 18, 42, 01, 0c, 00, 19, 11, 00, 1a, 02, 0a, 3e, 02, 0a, 00, 0b, 3b, 02, 0c, 00, 19, 15, 00, 1a, 00, 31, 36, 00, 31, 00, 32, 33, 04, 0c, 00, 19, 05, 00, 1a, 00, 31, 09, 00, 31, 00, 32, 47, 01, 09, 00, 17, 0d, 02, 05, 01, 02]
2+
Raw bytes (105): 0x[01, 01, 12, 01, 47, 05, 09, 03, 0d, 42, 11, 03, 0d, 11, 3e, 42, 11, 03, 0d, 3b, 15, 11, 3e, 42, 11, 03, 0d, 15, 36, 3b, 15, 11, 3e, 42, 11, 03, 0d, 05, 09, 0d, 01, 0c, 01, 01, 1b, 03, 02, 0b, 00, 18, 42, 01, 0c, 00, 19, 11, 00, 1a, 02, 0a, 3e, 02, 0a, 00, 0b, 3b, 02, 0c, 00, 19, 15, 00, 1a, 00, 31, 36, 00, 31, 00, 32, 33, 04, 0c, 00, 19, 05, 00, 1a, 00, 31, 09, 00, 31, 00, 32, 47, 01, 09, 00, 17, 0d, 02, 05, 01, 02]
33
Number of files: 1
44
- file 0 => global file 1
55
Number of expressions: 18
@@ -22,7 +22,7 @@ Number of expressions: 18
2222
- expression 16 operands: lhs = Expression(0, Add), rhs = Counter(3)
2323
- expression 17 operands: lhs = Counter(1), rhs = Counter(2)
2424
Number of file 0 mappings: 13
25-
- Code(Counter(0)) at (prev + 13, 1) to (start + 1, 27)
25+
- Code(Counter(0)) at (prev + 12, 1) to (start + 1, 27)
2626
- Code(Expression(0, Add)) at (prev + 2, 11) to (start + 0, 24)
2727
= (c0 + (c1 + c2))
2828
- Code(Expression(16, Sub)) at (prev + 1, 12) to (start + 0, 25)
@@ -44,13 +44,13 @@ Number of file 0 mappings: 13
4444
- Code(Counter(3)) at (prev + 2, 5) to (start + 1, 2)
4545

4646
Function name: abort::might_abort
47-
Raw bytes (21): 0x[01, 01, 01, 01, 05, 03, 01, 04, 01, 01, 14, 05, 02, 09, 01, 24, 02, 02, 0c, 03, 02]
47+
Raw bytes (21): 0x[01, 01, 01, 01, 05, 03, 01, 03, 01, 01, 14, 05, 02, 09, 01, 24, 02, 02, 0c, 03, 02]
4848
Number of files: 1
4949
- file 0 => global file 1
5050
Number of expressions: 1
5151
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
5252
Number of file 0 mappings: 3
53-
- Code(Counter(0)) at (prev + 4, 1) to (start + 1, 20)
53+
- Code(Counter(0)) at (prev + 3, 1) to (start + 1, 20)
5454
- Code(Counter(1)) at (prev + 2, 9) to (start + 1, 36)
5555
- Code(Expression(0, Sub)) at (prev + 2, 12) to (start + 3, 2)
5656
= (c0 - c1)

0 commit comments

Comments
 (0)