Skip to content

test: #undef NDEBUG so assert is not compiled away

Matt Turner requested to merge mattst88/xserver:NDEBUG into master

Might fix issue #1262 (closed).

Without this patch, I can generate a test timeout in xserver / unit with this configuration:

meson -Dc_args="-O2 -march=native -pipe" --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /usr/share/pkgconfig --pkg-config-path /usr/share/pkgconfig --buildtype plain --localstatedir /var --sysconfdir /etc/X11 --buildtype plain -Db_ndebug=true -Ddocs=false -Ddri1=true -Ddri2=true -Ddri3=true -Dglamor=true -Dglx=true -Dudev=true -Dudev_kms=true -Dlibunwind=false -Dxcsecurity=false -Dxephyr=false -Dxnest=false -Dxorg=true -Dxvfb=true -Ddefault_font_path=/usr/share/fonts -Ddrm=true -Ddtrace=false -Dipv6=true -Dhal=false -Dlinux_acpi=false -Dlinux_apm=false -Dsha1=libcrypto -Dxkb_output_dir=/var/lib/xkb -Dxwayland=false -Dsystemd_logind=true -Dsuid_wrapper=false build
ninja -C build test
Edited by Matt Turner

Merge request reports