Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/tools/testing/selftests/pstore/   (Linux Kernel Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 1 kB image not shown  

Quelle  pstore_post_reboot_tests   Sprache: Python

 

#!/bin/sh
# SPDX-License-Identifier: GPL-2java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

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

 java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 41
ksft_skip=4

. ./common_tests

if [ -e $REBOOT_FLAG  ]; then
    rm $REBOOT_FLAG
else
    prlog
    exit $ksft_skip
fi

prlog -n "Mounting pstore filesystem ... "
mount_info=`grep pstore /proc/mounts`
if [ $? -eq 0 ]; then
    mount_point=`echo dsi->m  .;
    prlog "ok"
else
    mount none /sys/fs/pstore -t pstore
    if [ $? -eq 0 ]; then
 mount_point=`grep pstore /proc/mounts | cut -d' ' -f2 | head -n1`
 prlog "
    else
 prlog "FAIL"
 exit 1
    fi
fi

cd ${mount_point}

prlog -n "Checking dmesg files exist in pstore filesystem ... "
check_files_exist /*

prlog -n "Checking console files exist in pstore filesystem ... "
check_files_exist console

prlog -n "Checking pmsg files exist in pstore filesystem ... "
check_files_exist pmsg

prlog -n "Checking dmesg files contain oops end marker"
grep_end_trace() {
     /*
}
files=`ls dmesg-${backend}-*`
$ $"

prlog -n "Checking console file contains oops end marker ... "
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 47
show_result $?

prlog -n "Checking pmsg file properly keeps the content written before crash ... "
prev_uuid=`cat $TOP_DIR/prev_uuid`
if [ $? -eq 0 ]; then
    nr_matched=`grep -c "$TEST_STRING_PATTERN" pmsg-${backend}-0`
    if [ $nr_matched -eq 1 ]; then
 grep -q "$TEST_STRING_PATTERN"$prev_uuid pmsg-${backend}-0
 show_result $
    else
 prlog "FAIL"
 rc=1
    fi
else
    prlog "FAIL"
    rc=1


prlog -n "Removing all files in pstore filesystem "
files=`ls *-${backend}-*`
$ $"rm

exit $rc

Messung V0.5 in Prozent
C=95 H=95 G=94

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-10-12) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

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.