Skip to content

Commit

Permalink
Merge pull request #168 from rust3ds/testing/add-layout-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-h-chamberlain authored Mar 14, 2024
2 parents c63932c + 432fca3 commit 519820b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,16 @@ jobs:
- name: Check formatting
run: cargo fmt --all --verbose -- --check

# We always run the next two steps, so that even if formatting fails we
# still get compilation errors for the same run (mainly for matchers).

- name: Cargo check ctru-sys (without tests)
run: cargo 3ds clippy --package ctru-sys --color=always --verbose
if: success() || failure()

- name: Cargo check ctru-rs (including tests)
run: cargo 3ds clippy --package ctru-rs --color=always --verbose --all-targets
if: success() || failure()

test:
strategy:
Expand Down
2 changes: 1 addition & 1 deletion ctru-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn main() {
.use_core()
.trust_clang_mangling(false)
.must_use_type("Result")
.layout_tests(false)
.layout_tests(true)
.ctypes_prefix("::libc")
.prepend_enum_name(false)
.blocklist_type("u(8|16|32|64)")
Expand Down

0 comments on commit 519820b

Please sign in to comment.