servo / font-kit

A cross-platform font loading library written in Rust
Apache License 2.0
660 stars 98 forks source link

Investigate CI failure #206

Closed jdm closed 1 year ago

jdm commented 1 year ago
---- get_font_metrics stdout ----
thread 'get_font_metrics' panicked at 'assertion failed: `(left == right)`
  left: `-40.0`,
 right: `-130.0`', tests/tests.rs:602:5
stack backtrace:
   0: rust_begin_unwind
             at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/panicking.rs:575:5
   1: core::panicking::panic_fmt
             at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/core/src/panicking.rs:65:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/core/src/panicking.rs:203:5
   4: tests::get_font_metrics
             at ./tests/tests.rs:602:5
   5: tests::get_font_metrics::{{closure}}
             at ./tests/tests.rs:591:1
   6: core::ops::function::FnOnce::call_once
             at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/core/src/ops/function.rs:251:5
   7: core::ops::function::FnOnce::call_once
             at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/core/src/ops/function.rs:251:5

But why is this test running on linux at all? https://github.com/servo/font-kit/blob/c72ca29df0ca93fd32b5ee40a74d8fe71a21d1a6/tests/tests.rs#L559-L564

jdm commented 1 year ago

Oh, it's actually https://github.com/servo/font-kit/blob/c72ca29df0ca93fd32b5ee40a74d8fe71a21d1a6/tests/tests.rs#L586-L591