add "set(CMAKE_CXX_FLAGS -fsanitize=undefined,address -O2)" in autotests cmake
make error like
"[ 42%] Linking CXX executable ../bin/testOnScreenNotification
/usr/bin/ld: CMakeFiles/testOnScreenNotification.dir/__/onscreennotification.cpp.o:(.data.rel+0xf78): undefined reference to typeinfo for KWin::InputRedirection' /usr/bin/ld: CMakeFiles/testOnScreenNotification.dir/__/input_event_spy.cpp.o:(.data.rel+0x18): undefined reference to
typeinfo for KWin::InputRedirection'
collect2: error: ld returned 1 exit status
"
Edited by xu peidong