Skip to content

ctest: add tests for aliases, structs, unions, as well as a test crate. #4543

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from

Merge branch 'main' into ctest-next-test-port

d2b1425
Select commit
Loading
Failed to load commit list.
Closed

ctest: add tests for aliases, structs, unions, as well as a test crate. #4543

Merge branch 'main' into ctest-next-test-port
d2b1425
Select commit
Loading
Failed to load commit list.
Cirrus CI / nightly freebsd-13 i686 failed Jul 16, 2025 in 1m 15s

Task Summary

Instruction test failed in 00:48

Details

✅ 00:08 clone
✅ 00:16 setup
❌ 00:48 test

      |                                                  ^

  error: invalid fragment specifier `literal`
     --> /tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0adcba09df157fb8/out/src-hotfix/macros.rs:229:34
      |
  229 |             $($variant:ident $(= $value:literal)?,)+
      |                                  ^^^^^^^^^^^^^^
      |
      = help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `path`, `meta`, `tt`, `item` and `vis`

  error: expected `*` or `+`
     --> /tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0adcba09df157fb8/out/src-hotfix/macros.rs:240:44
      |
  240 |         $variant:ident $(= $value:literal)?,
      |                                            ^

  error: invalid fragment specifier `literal`
     --> /tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0adcba09df157fb8/out/src-hotfix/macros.rs:240:28
      |
  240 |         $variant:ident $(= $value:literal)?,
      |                            ^^^^^^^^^^^^^^
      |
      = help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `path`, `meta`, `tt`, `item` and `vis`

  error: expected `*` or `+`
     --> /tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0adcba09df157fb8/out/src-hotfix/macros.rs:232:49
      |
  232 |         pub type $ty_name = c_enum!(@ty $($repr)?);
      |                                                 ^

  error: expected `*` or `+`
     --> /tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0adcba09df157fb8/out/src-hotfix/macros.rs:233:59
      |
  233 |         c_enum!(@one; $ty_name; 0; $($variant $(= $value)?,)+);
      |                                                           ^

  error: expected `*` or `+`
     --> /tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0adcba09df157fb8/out/src-hotfix/macros.rs:247:13
      |
  247 |             r
      |             ^

  error: expected identifier, found `::`
     --> /tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0adcba09df157fb8/out/src-hotfix/macros.rs:257:17
      |
  257 |     (@ty) => { $::c_uint };
      |                 ^^

  rust version: 1.90.0-nightly

  thread 'main' panicked at /tmp/cirrus-ci-build/ctest/src/lib.rs:782:33:
  Failed to generate tests: failed to compile `libmain.a`
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

Exit status: 101