Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/VLC/test/   (VLC Media Plyer ©)  Datei vom 23.9.2026 mit Größe 1 kB image not shown  

Quelle  dump_stacktraces.sh   Sprache: Shell

 

#!/bin/sh

# Helper used to print more information (log + core dump) about a failing test

if [ $# -gt 0 ];then
    # exit code passed in from stdin
    ret=$1
else
    ret=1
fi

if [ $ret -eq 0 ] || ! (command -v gdb >/dev/null);then
    exit $ret
fi

# test failed

for i in $(find -name test-suite.log);do
    # Search for a failing test
    error_cnt=$(sed -n 's/^# FAIL: *\([^ ]\+\)/\1/p' "$i")
    if [ $error_cnt -gt 0 ];then
        cat "$i"

        test_path=$(dirname "$i")
        core_path="$test_path/core"
        failing_test=$(sed -n 's/^FAIL \([^ ]\+\) (exit status:.*/\1/p' ${test_path}/test-suite.log)
        if [ -f "$core_path" -a ! -z "$failing_test" ];then
            if [ -x "$test_path/.libs/$failing_test" ];then
                failing_test_path="$test_path/.libs/$failing_test"
            else
                failing_test_path="$test_path/$failing_test"
            fi
            echo "Printing core dump:"
            echo ""
            gdb "$failing_test_path" -c "$core_path" \
                -ex "set pagination off" \
                -ex "thread apply all bt" \
                -ex "quit"
        fi
    fi
done

exit $ret

Messung
CHZG
839610093

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-04) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.