#!/bin/sh # 11.08.2007 Volker Quetschke # Test that recipes with error can be ignored. # (issue 80598) : ${DMAKEPROG:=dmake} file1="mfile1.mk" tmpfiles="$file1" trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15 # Remove files from prior failed run rm -rf $tmpfiles # Remember to quote variables in generated makefiles( $ -> \$ ). # Test 1 - Ignore, but display failed execution. cat > $file1 <&1` result1=$? if test "$result1" = "0" && echo $output1 | grep '(Ignored)' > /dev/null 2>&1 ; then echo "Subtest 1: OK" result1=0 else echo "Subtest 1: Wrong result: $output1" echo result1=1 fi # Test 2 - Ignore, but display failed execution. cat > $file1 <&1` result2=$? if test "$result2" = "0" && echo $output2 | grep '(Ignored)' > /dev/null 2>&1 ; then echo "Subtest 2: OK" result2=0 else echo "Subtest 2: Wrong result: $output2" echo result2=1 fi # Test 3 cat > $file1 <&1` result3=$? if test $result3 != 0 && echo $output3 | grep 'Error code -1, while making ' > /dev/null 2>&1 ; then echo "Subtest 3: OK" result3=0 else echo "Subtest 3: Wrong result: $output3" echo result3=1 fi # Test 4 - Ignore a succesfully executed, but failing recipe. cat > $file1 <&1` result4=$? if test "$result4" = "0" -a "$output4" = "false all" ; then echo "Subtest 4: OK" result4=0 else echo "Subtest 4: Wrong result: $output4" echo result4=1 fi if test $result1 -eq 0 -a $result2 -eq 0 \ -a $result3 -eq 0 -a $result4 -eq 0 ; then echo "Success - Cleaning up" && rm -f ${tmpfiles} exit else echo "Failure!" exit 1 fi LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2015-12-23loplugin:unusedfields in eventattacherNoel Grandin
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-11-04yyyyyNoel Grandin
2015-11-02use uno::Reference::set method instead of assignmentNoel Grandin
2015-11-01no need to be so verbose in constructing uno::ReferenceNoel Grandin
2015-10-18cppcheck:noExplicitConstructorNoel Grandin
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
2015-10-01com::sun::star->css in extensions/Noel Grandin
2015-08-05tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin
2015-04-07loplugin:staticmethodsNoel Grandin
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann
2015-03-11V668 no sense in testing the result of new against nullCaolán McNamara
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini
2014-05-24coverity#983657 Uncaught exceptionCaolán McNamara
2014-05-22Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part19Julien Nabet
2014-04-22eventattacher: sal_Bool->boolNoel Grandin
2014-04-14Remove dead function declarationStephan Bergmann
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
2014-03-07Introduce com.sun.star.beans.theIntrospection singletonStephan Bergmann
2014-02-27eventattacher: fix out of bounds string accessMiklos Vajna
2014-02-26Remove visual noise from eventattacherAlexander Wilms
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann