meson: Don't use assert in test code

Seungha Yang requested to merge seungha.yang/glib:fix-win-assert into master

The test code can be built on Windows using Cygwin or MSYS2. Even though it's test code, it might bring assertion dialog box for native Windows while meson configure.

Initially reported from GStreamer

Merge request reports