Skip to content

Commit 0e4b337

Browse files
committed
Update output files for test suites besides wit-parser
1 parent a894f0b commit 0e4b337

File tree

130 files changed

+257
-258
lines changed

Some content is hidden

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

130 files changed

+257
-258
lines changed

tests/cli/bad-component-new.wat.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Caused by:
44
0: failed to decode world from module
55
1: module was not valid
66
2: failed to resolve import `a::a`
7-
3: module requires an import interface named `a`
7+
3: module requires an import interface named `a`

tests/cli/component-embed-only-custom.wit.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
(@producers
1717
(processed-by "wit-component" "%version")
1818
)
19-
)
19+
)
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
error: decoding a component is not supported
1+
error: decoding a component is not supported
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
error: input is a core wasm module with no `component-type*` custom sections meaning that there is not WIT information; is the information not embedded or is this supposed to be a component?
1+
error: input is a core wasm module with no `component-type*` custom sections meaning that there is not WIT information; is the information not embedded or is this supposed to be a component?

tests/cli/component-wit-of-core-module.wit.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ package a:b {
1111

1212
export y: func();
1313
}
14-
}
14+
}

tests/cli/dangling_if.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
if ;; label = @1
55

66
)
7-
)
7+
)

tests/cli/demangle1.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
(func $do_no_demangle_me (;0;) (type 0))
44
(func $rust (;1;) (type 0))
55
(func $"foo(double)" (;2;) (type 0))
6-
)
6+
)

tests/cli/dump-branch-hints.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
0x40 | 0b | end
3131
0x41 | 04 40 | if blockty:Empty
3232
0x43 | 0b | end
33-
0x44 | 0b | end
33+
0x44 | 0b | end

tests/cli/dump-dylink0.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
0x26 | 04 06 01 01 | ImportInfo([ImportInfo { module: "a", field: "a", flags: SymbolFlags(0x0) }])
1414
| 61 01 61 00
1515
0x2e | 03 04 01 01 | ExportInfo([ExportInfo { name: "a", flags: SymbolFlags(BINDING_WEAK | BINDING_LOCAL | UNDEFINED) }])
16-
| 61 13
16+
| 61 13

tests/cli/dump-elem-segments.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@
4343
| 65
4444
0x4d | 01 04 | function name section
4545
0x4f | 01 | 1 count
46-
0x50 | 00 01 66 | Naming { index: 0, name: "f" }
46+
0x50 | 00 01 66 | Naming { index: 0, name: "f" }

tests/cli/dump-invalid-name-section.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
0x14 | 00 | function 0 local name section
1111
0x15 | 00 | 0 count
1212
0x16 | 00 40 | ???
13-
0x18 |-------------| ... failed to decode 2 more bytes: unexpected end-of-file (at offset 0x18)
13+
0x18 |-------------| ... failed to decode 2 more bytes: unexpected end-of-file (at offset 0x18)

tests/cli/dump-invalid-name-section2.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
0x15 | 00 | 0 count
1212
0x16 | 00 | function 0 local name section
1313
0x17 | 00 | 0 count
14-
0x18 |-------------| ... failed to decode 2 more bytes: unexpected end-of-file (at offset 0x18)
14+
0x18 |-------------| ... failed to decode 2 more bytes: unexpected end-of-file (at offset 0x18)

tests/cli/dump-invalid-name-section3.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
0xa | 04 6e 61 6d | name: "name"
55
| 65
66
0xf | 02 07 | ???
7-
0x11 |-------------| ... failed to decode 1 more bytes: unexpected end-of-file (at offset 0x11)
7+
0x11 |-------------| ... failed to decode 1 more bytes: unexpected end-of-file (at offset 0x11)

tests/cli/dump-llvm-object.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -598,4 +598,4 @@
598598
| 35 36 65 35
599599
| 20 32 30 32
600600
| 34 2d 30 34
601-
| 2d 32 39 29
601+
| 2d 32 39 29

tests/cli/dump-producers-section.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
| 79
2424
0x49 | 01 | 1 count
2525
0x4a | 03 66 6f 6f | ProducersFieldValue { name: "foo", version: "bar" }
26-
| 03 62 61 72
26+
| 03 62 61 72

tests/cli/dump/alias.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@
7272
0xaf | 00 01 6d | Naming { index: 0, name: "m" }
7373
0xb2 | 01 05 05 | instance name section
7474
0xb5 | 01 | 1 count
75-
0xb6 | 00 01 69 | Naming { index: 0, name: "i" }
75+
0xb6 | 00 01 69 | Naming { index: 0, name: "i" }

tests/cli/dump/alias2.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,4 +246,4 @@
246246
0x27e | 01 09 05 | instance name section
247247
0x281 | 02 | 2 count
248248
0x282 | 00 01 69 | Naming { index: 0, name: "i" }
249-
0x285 | 03 02 69 32 | Naming { index: 3, name: "i2" }
249+
0x285 | 03 02 69 32 | Naming { index: 3, name: "i2" }

tests/cli/dump/blockty.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@
4646
0x4c | 02 | 2 count
4747
0x4d | 00 05 65 6d | Naming { index: 0, name: "empty" }
4848
| 70 74 79
49-
0x54 | 01 01 74 | Naming { index: 1, name: "t" }
49+
0x54 | 01 01 74 | Naming { index: 1, name: "t" }

tests/cli/dump/bundled.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,4 +235,4 @@
235235
0x25e | 01 | 1 count
236236
0x25f | 00 09 72 65 | Naming { index: 0, name: "real-wasi" }
237237
| 61 6c 2d 77
238-
| 61 73 69
238+
| 61 73 69

tests/cli/dump/component-expand-bundle.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@
6767
0x95 | 01 02 6d 32 | Naming { index: 1, name: "m2" }
6868
0x99 | 01 06 00 12 | core instance name section
6969
0x9d | 01 | 1 count
70-
0x9e | 00 01 4d | Naming { index: 0, name: "M" }
70+
0x9e | 00 01 4d | Naming { index: 0, name: "M" }

tests/cli/dump/component-expand-bundle2.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@
6363
0xb3 | 01 02 63 32 | Naming { index: 1, name: "c2" }
6464
0xb7 | 01 05 05 | instance name section
6565
0xba | 01 | 1 count
66-
0xbb | 00 01 43 | Naming { index: 0, name: "C" }
66+
0xbb | 00 01 43 | Naming { index: 0, name: "C" }

tests/cli/dump/component-inline-export-import.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
0x25 | 00 00 04 00 | export ComponentExport { name: ComponentExportName(""), kind: Component, index: 0, ty: None }
1919
| 00
2020
0x2a | 00 01 61 00 | export ComponentExport { name: ComponentExportName("a"), kind: Module, index: 0, ty: None }
21-
| 11 00 00
21+
| 11 00 00

tests/cli/dump/component-inline-type.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
0x37 | 0a 06 | component import section
2828
0x39 | 01 | 1 count
2929
0x3a | 00 01 64 01 | [func 0] ComponentImport { name: ComponentImportName("d"), ty: Func(2) }
30-
| 02
30+
| 02

tests/cli/dump/component-instance-type.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
0x43 | 01 09 03 | type name section
2121
0x46 | 01 | 1 count
2222
0x47 | 00 05 6f 75 | Naming { index: 0, name: "outer" }
23-
| 74 65 72
23+
| 74 65 72

tests/cli/dump/component-linking.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@
8888
0xea | 00 01 63 | Naming { index: 0, name: "c" }
8989
0xed | 01 05 05 | instance name section
9090
0xf0 | 01 | 1 count
91-
0xf1 | 00 01 69 | Naming { index: 0, name: "i" }
91+
0xf1 | 00 01 69 | Naming { index: 0, name: "i" }

tests/cli/dump/component-outer-alias.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@
7070
0xc6 | 01 09 03 | type name section
7171
0xc9 | 02 | 2 count
7272
0xca | 00 01 74 | Naming { index: 0, name: "t" }
73-
0xcd | 02 02 74 32 | Naming { index: 2, name: "t2" }
73+
0xcd | 02 02 74 32 | Naming { index: 2, name: "t2" }

tests/cli/dump/import-modules.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@
5050
0x78 | 01 0b 00 12 | core instance name section
5151
0x7c | 02 | 2 count
5252
0x7d | 00 02 69 31 | Naming { index: 0, name: "i1" }
53-
0x81 | 01 02 69 32 | Naming { index: 1, name: "i2" }
53+
0x81 | 01 02 69 32 | Naming { index: 1, name: "i2" }

tests/cli/dump/instance-expand.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
| 61 6d 65
1717
0x30 | 01 05 03 | type name section
1818
0x33 | 01 | 1 count
19-
0x34 | 00 01 69 | Naming { index: 0, name: "i" }
19+
0x34 | 00 01 69 | Naming { index: 0, name: "i" }

tests/cli/dump/instance-type.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
| 00 00 01 00
88
0x17 | 42 02 01 42 | [type 1] Instance([Type(Instance([])), Export { name: ComponentExportName(""), ty: Instance(0) }])
99
| 00 04 00 00
10-
| 05 00
10+
| 05 00

tests/cli/dump/instance-type2.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
| 61 6d 65
1717
0x33 | 01 05 03 | type name section
1818
0x36 | 01 | 1 count
19-
0x37 | 02 01 78 | Naming { index: 2, name: "x" }
19+
0x37 | 02 01 78 | Naming { index: 2, name: "x" }

tests/cli/dump/instantiate.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
0x4a | 00 01 63 | Naming { index: 0, name: "c" }
3232
0x4d | 01 05 05 | instance name section
3333
0x50 | 01 | 1 count
34-
0x51 | 00 01 61 | Naming { index: 0, name: "a" }
34+
0x51 | 00 01 61 | Naming { index: 0, name: "a" }

tests/cli/dump/instantiate2.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
| 61 6d 65
2121
0x37 | 01 05 04 | component name section
2222
0x3a | 01 | 1 count
23-
0x3b | 00 01 63 | Naming { index: 0, name: "c" }
23+
0x3b | 00 01 63 | Naming { index: 0, name: "c" }

tests/cli/dump/module-types.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@
2929
0x54 | 01 09 03 | type name section
3030
0x57 | 01 | 1 count
3131
0x58 | 00 05 65 6d | Naming { index: 0, name: "empty" }
32-
| 70 74 79
32+
| 70 74 79

tests/cli/dump/names.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
0x31 | 00 | function 0 local name section
2828
0x32 | 02 | 2 count
2929
0x33 | 00 01 78 | Naming { index: 0, name: "x" }
30-
0x36 | 01 01 79 | Naming { index: 1, name: "y" }
30+
0x36 | 01 01 79 | Naming { index: 1, name: "y" }

tests/cli/dump/nested-component.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@
7070
0xbc | 0b 07 | component export section
7171
0xbe | 01 | 1 count
7272
0xbf | 00 01 61 04 | export ComponentExport { name: ComponentExportName("a"), kind: Component, index: 3, ty: None }
73-
| 03 00
73+
| 03 00

tests/cli/dump/rec-group.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
0x48 | 04 07 | type name section
3131
0x4a | 02 | 2 count
3232
0x4b | 04 01 61 | Naming { index: 4, name: "a" }
33-
0x4e | 05 01 62 | Naming { index: 5, name: "b" }
33+
0x4e | 05 01 62 | Naming { index: 5, name: "b" }

tests/cli/dump/select.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
0x1d | 1c 02 | ??
1919
0x1f | 7f | i64_div_s
2020
0x20 | 7f | i64_div_s
21-
0x21 | 0b | end
21+
0x21 | 0b | end

tests/cli/dump/simple.wat.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@
7474
| 65 2d 6f 66
7575
| 2d 73 65 63
7676
| 74 69 6f 6e
77-
0x85 |-------------| ... 7 bytes of data
77+
0x85 |-------------| ... 7 bytes of data
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
0x18: dwarf(name) tests/cli/dwarf-into-addr2line.wat:5:10
22
0x1a: dwarf(name) tests/cli/dwarf-into-addr2line.wat:6:10
33
0x1e: another-function tests/cli/dwarf-into-addr2line.wat:10:10
4-
0x20: another-function tests/cli/dwarf-into-addr2line.wat:11:10
4+
0x20: another-function tests/cli/dwarf-into-addr2line.wat:11:10

tests/cli/dwarf-validate.wat.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ error: tests/cli/dwarf-validate.wat:6:5 function `user-name` failed to validate
22

33
Caused by:
44
0: func 0 failed to validate
5-
1: type mismatch: expected i32 but nothing on stack (at offset 0x1c)
5+
1: type mismatch: expected i32 but nothing on stack (at offset 0x1c)

tests/cli/embed-dummy.wit.legacy.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
unreachable
1919
)
2020
(func (;4;) (type 3))
21-
)
21+
)

tests/cli/embed-dummy.wit.standard32.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
unreachable
1919
)
2020
(func (;4;) (type 3))
21-
)
21+
)

tests/cli/fail-merge.wit.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ error: updating metadata for section component-type
33
Caused by:
44
0: failed to merge worlds from two documents
55
1: failed to add export `a:b/i1`
6-
2: export `x` depends on `a:b/i1` previously as an import which will change meaning if `a:b/i1` is added as an export
6+
2: export `x` depends on `a:b/i1` previously as an import which will change meaning if `a:b/i1` is added as an export

tests/cli/importize.wit.fail1.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
error: failed to move world exports to imports
22

33
Caused by:
4-
0: world export `foo` conflicts with import of same name
4+
0: world export `foo` conflicts with import of same name

tests/cli/importize.wit.simple-component.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ package importize:importize {
1010
world simple {
1111
export t;
1212
}
13-
}
13+
}

tests/cli/importize.wit.simple-rename.stdout

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
/// RUN[simple]: component wit --importize-world simple %
2-
/// RUN[simple-rename]: component wit --importize-world simple-rename --importize-out-world-name test-rename %
3-
/// RUN[simple-component]: component embed --dummy --world simple % | /
4-
/// component wit --importize
5-
/// RUN[with-deps]: component wit --importize-world with-deps %
6-
/// RUN[simple-toplevel]: component wit --importize-world simple-toplevel %
7-
/// RUN[toplevel-deps]: component wit --importize-world toplevel-deps %
8-
/// FAIL[fail1]: component wit --importize-world fail1 %
9-
/// RUN[trim-imports]: component wit --importize-world trim-imports %
10-
/// RUN[tricky-import]: component wit --importize-world tricky-import %
1+
/// RUN[simple]: component wit --importize-world simple %
2+
/// RUN[simple-rename]: component wit --importize-world simple-rename --importize-out-world-name test-rename %
3+
/// RUN[simple-component]: component embed --dummy --world simple % | /
4+
/// component wit --importize
5+
/// RUN[with-deps]: component wit --importize-world with-deps %
6+
/// RUN[simple-toplevel]: component wit --importize-world simple-toplevel %
7+
/// RUN[toplevel-deps]: component wit --importize-world toplevel-deps %
8+
/// FAIL[fail1]: component wit --importize-world fail1 %
9+
/// RUN[trim-imports]: component wit --importize-world trim-imports %
10+
/// RUN[tricky-import]: component wit --importize-world tricky-import %
1111
package importize:importize;
1212

1313
interface t {
@@ -94,4 +94,4 @@ world tricky-import {
9494
}
9595
world test-rename {
9696
import t;
97-
}
97+
}

tests/cli/importize.wit.simple-toplevel.stdout

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
/// RUN[simple]: component wit --importize-world simple %
2-
/// RUN[simple-rename]: component wit --importize-world simple-rename --importize-out-world-name test-rename %
3-
/// RUN[simple-component]: component embed --dummy --world simple % | /
4-
/// component wit --importize
5-
/// RUN[with-deps]: component wit --importize-world with-deps %
6-
/// RUN[simple-toplevel]: component wit --importize-world simple-toplevel %
7-
/// RUN[toplevel-deps]: component wit --importize-world toplevel-deps %
8-
/// FAIL[fail1]: component wit --importize-world fail1 %
9-
/// RUN[trim-imports]: component wit --importize-world trim-imports %
10-
/// RUN[tricky-import]: component wit --importize-world tricky-import %
1+
/// RUN[simple]: component wit --importize-world simple %
2+
/// RUN[simple-rename]: component wit --importize-world simple-rename --importize-out-world-name test-rename %
3+
/// RUN[simple-component]: component embed --dummy --world simple % | /
4+
/// component wit --importize
5+
/// RUN[with-deps]: component wit --importize-world with-deps %
6+
/// RUN[simple-toplevel]: component wit --importize-world simple-toplevel %
7+
/// RUN[toplevel-deps]: component wit --importize-world toplevel-deps %
8+
/// FAIL[fail1]: component wit --importize-world fail1 %
9+
/// RUN[trim-imports]: component wit --importize-world trim-imports %
10+
/// RUN[tricky-import]: component wit --importize-world tricky-import %
1111
package importize:importize;
1212

1313
interface t {
@@ -94,4 +94,4 @@ world simple-toplevel-importized {
9494
import something: interface {
9595
foo: func();
9696
}
97-
}
97+
}

0 commit comments

Comments
 (0)