#NEWLINE# def test_when_missing_libs( qibuild_action , qitest_action ) : #NEWLINE# #INDENT# " Sometimes the build system is broken and shared\n    libraries dependencies cannnot be found. In this case,\n    make sure ``qitest`` raises an exception instead\n    of just having a non-zero return code,\n    so that it's clear it's not just a failing test\n    but something more serious\n\n    " #NEWLINE# world_proj = qibuild_action . add_test_project ( 'world' ) #NEWLINE# hello_proj = qibuild_action . add_test_project ( 'hello' ) #NEWLINE# qibuild_action ( 'configure' , 'hello' ) #NEWLINE# qibuild_action ( 'make' , 'hello' ) #NEWLINE# lib_world = qibuild . find . find_lib ( [ world_proj . sdk_directory ] , 'world' , expect_one = True ) #NEWLINE# os . remove ( lib_world ) #NEWLINE# qitest_action . chdir ( 'hello' ) #NEWLINE# with pytest . raises ( qisys . error . Error ) as e : #NEWLINE# #INDENT# qitest_action ( 'run' )