File tree Expand file tree Collapse file tree 7 files changed +22
-20
lines changed Expand file tree Collapse file tree 7 files changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,8 @@ jobs:
184
184
run : cargo clippy -p test_interop
185
185
- name : Clippy test_lib
186
186
run : cargo clippy -p test_lib
187
+ - name : Clippy test_linux
188
+ run : cargo clippy -p test_linux
187
189
- name : Clippy test_literals
188
190
run : cargo clippy -p test_literals
189
191
- name : Clippy test_match
@@ -216,8 +218,6 @@ jobs:
216
218
run : cargo clippy -p test_return_struct
217
219
- name : Clippy test_riddle
218
220
run : cargo clippy -p test_riddle
219
- - name : Clippy test_simple_component
220
- run : cargo clippy -p test_simple_component
221
221
- name : Clippy test_standalone
222
222
run : cargo clippy -p test_standalone
223
223
- name : Clippy test_string_param
Original file line number Diff line number Diff line change 19
19
uses : actions/checkout@v4
20
20
- name : Update toolchain
21
21
run : rustup update --no-self-update stable && rustup default stable
22
- - name : Run cargo build
23
- run : cargo build -p test_simple_component --target x86_64-unknown-linux-gnu
22
+ - name : Run cargo test
23
+ run : cargo test -p test_linux --target x86_64-unknown-linux-gnu
Original file line number Diff line number Diff line change @@ -210,6 +210,8 @@ jobs:
210
210
run : cargo test -p test_interop --target ${{ matrix.target }} ${{ matrix.etc }}
211
211
- name : Test test_lib
212
212
run : cargo test -p test_lib --target ${{ matrix.target }} ${{ matrix.etc }}
213
+ - name : Test test_linux
214
+ run : cargo test -p test_linux --target ${{ matrix.target }} ${{ matrix.etc }}
213
215
- name : Test test_literals
214
216
run : cargo test -p test_literals --target ${{ matrix.target }} ${{ matrix.etc }}
215
217
- name : Test test_match
@@ -242,8 +244,6 @@ jobs:
242
244
run : cargo test -p test_return_struct --target ${{ matrix.target }} ${{ matrix.etc }}
243
245
- name : Test test_riddle
244
246
run : cargo test -p test_riddle --target ${{ matrix.target }} ${{ matrix.etc }}
245
- - name : Test test_simple_component
246
- run : cargo test -p test_simple_component --target ${{ matrix.target }} ${{ matrix.etc }}
247
247
- name : Test test_standalone
248
248
run : cargo test -p test_standalone --target ${{ matrix.target }} ${{ matrix.etc }}
249
249
- name : Test test_string_param
Original file line number Diff line number Diff line change 1
1
[package ]
2
- name = " test_simple_component "
2
+ name = " test_linux "
3
3
version = " 0.0.0"
4
4
edition = " 2021"
5
5
publish = false
6
6
7
- [lib ]
8
- crate-type = [" cdylib" ]
9
-
10
7
[dependencies .windows ]
11
8
path = " ../../libs/windows"
12
9
features = [
10
+ " Foundation" ,
13
11
" Win32_Foundation" ,
14
12
]
Original file line number Diff line number Diff line change
1
+
Original file line number Diff line number Diff line change
1
+ use windows:: core:: * ;
2
+
3
+ #[ test]
4
+ fn test ( ) {
5
+ unsafe {
6
+ let s: PCSTR = s ! ( "hello world" ) ;
7
+ assert_eq ! ( s. to_string( ) . unwrap( ) , "hello world" ) ;
8
+
9
+ // TODO: https://github.com/microsoft/windows-rs/pull/3004 should enable the following test.
10
+ // let w: PCWSTR = w!("wide world");
11
+ // assert_eq!(w.to_string().unwrap(), "wide world");
12
+ }
13
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments