libremidi icon indicating copy to clipboard operation
libremidi copied to clipboard

Tests midiin_test, midiout_test fail: FAILED: REQUIRE( in.get_current_api() == libremidi::midi1::default_api() )

Open yurivict opened this issue 9 months ago • 2 comments

$ ./work/.build/midiin_test
Randomness seeded to: 1648153659
ALSA lib seq_hw.c:528:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
midiin_test is a Catch2 v3.8.0 host application.
Run with -? for options

-------------------------------------------------------------------------------
creation
      Given: A default midi input
       Then: created with the default MIDI 1 api for the platform
-------------------------------------------------------------------------------
/usr/ports/audio/libremidi/work/libremidi-5.0.0/tests/unit/midi_in.cpp:25
...............................................................................

/usr/ports/audio/libremidi/work/libremidi-5.0.0/tests/unit/midi_in.cpp:27: FAILED:
  REQUIRE( in.get_current_api() == libremidi::midi1::default_api() )
with expansion:
  2 == 65535

Assertion failed: (seq && ev), function snd_seq_event_output_buffer, file seq.c, line 4187.
/usr/ports/audio/libremidi/work/libremidi-5.0.0/tests/unit/midi_in.cpp:27: FAILED:
  {Unknown expression after the reported line}
due to a fatal error condition:
  SIGABRT - Abort (abnormal termination) signal

===============================================================================
test cases: 1 | 1 failed
assertions: 2 | 2 failed

Abort trap
$ ./work/.build/midiout_test
Randomness seeded to: 419304083
ALSA lib seq_hw.c:528:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
midiout_test is a Catch2 v3.8.0 host application.
Run with -? for options

-------------------------------------------------------------------------------
creation
      Given: A default midi output
       Then: created with the default MIDI 1 api for the platform
-------------------------------------------------------------------------------
/usr/ports/audio/libremidi/work/libremidi-5.0.0/tests/unit/midi_out.cpp:17
...............................................................................

/usr/ports/audio/libremidi/work/libremidi-5.0.0/tests/unit/midi_out.cpp:19: FAILED:
  REQUIRE( out.get_current_api() == libremidi::midi1::default_api() )
with expansion:
  2 == 65535

Assertion failed: (seq), function snd_seq_close, file seq.c, line 1046.
/usr/ports/audio/libremidi/work/libremidi-5.0.0/tests/unit/midi_out.cpp:19: FAILED:
  {Unknown expression after the reported line}
due to a fatal error condition:
  SIGABRT - Abort (abnormal termination) signal

===============================================================================
test cases: 1 | 1 failed
assertions: 2 | 2 failed

Abort trap

Version: 5.0.0 Clang-19 FreeBSD 14.2

yurivict avatar Mar 13 '25 04:03 yurivict

@jcelerier

These tests still fail in the version 5.3.1

yurivict avatar Jul 15 '25 05:07 yurivict

hmm i'm sure i had tried it on a freebsd laptop last time, i'll check again

jcelerier avatar Jul 15 '25 12:07 jcelerier