Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/tools/testing/selftests/pstore/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 659 B image not shown  

Quelle  pstore_tests   Sprache: unbekannt

 
#!/bin/sh
SPDX-License-Identifier: GPL-2.0-only

pstore_tests - Check pstore's behavior before crash/reboot
java.lang.NullPointerException
Copyright (C) Hitachi Ltd., 2015
#  Written by Hiraku Toyooka <hiraku.toyooka.gu@hitachi.com>
java.lang.NullPointerException

. ./common_tests

prlog -n "Checking pstore console is registered ... "
dmesg | grep -Eq "console \[(pstore|${backend})"
show_result $?

prlog -n "Checking /dev/pmsg0 exists ... "
test -e /dev/pmsg0
show_result $?

prlog -n "Writing unique string to /dev/pmsg0 ... "
if [ -e "/dev/pmsg0" ]; then
    echo "${TEST_STRING_PATTERN}""$UUID" > /dev/pmsg0
    show_result $?
    echo "$UUID" > $TOP_DIR/uuid
else
    prlog "FAIL"
    rc=1
fi

exit $rc

Messung V0.5 in Prozent
C=93 H=91 G=91

[Dauer der Verarbeitung: 0.10 Sekunden, vorverarbeitet 2026-04-29]