VirtualBox

Changeset 61179 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
May 24, 2016 8:08:17 PM (9 years ago)
Author:
vboxsync
Message:

validationkit: test_coredumps is Linux-only

Location:
trunk/src/VBox/ValidationKit/testboxscript
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testboxscript/linux/setup-routines.sh

    r58591 r61179  
    9595}
    9696
     97##
     98# Test if core dumps are enabled. See https://wiki.ubuntu.com/Apport!
     99#
     100test_coredumps() {
     101    if test "`lsb_release -is`" = "Ubuntu"; then
     102        if grep -q "apport" /proc/sys/kernel/core_pattern; then
     103            if grep -q "#.*problem_types" /etc/apport/crashdb.conf; then
     104                echo "It looks like core dumps are properly configured, good!"
     105            else
     106                echo "Warning: Core dumps will be not always generated!"
     107            fi
     108        else
     109            echo "Warning: Apport not installed! This package is required for core dump handling!"
     110        fi
     111    fi
     112}
  • trunk/src/VBox/ValidationKit/testboxscript/setup.sh

    r56478 r61179  
    308308#
    309309test_coredumps() {
    310     if test "`lsb_release -is`" = "Ubuntu"; then
    311         if grep -q "apport" /proc/sys/kernel/core_pattern; then
    312             if grep -q "#.*problem_types" /etc/apport/crashdb.conf; then
    313                 echo "It looks like core dumps are properly configured, good!"
    314             else
    315                 echo "Warning: Core dumps will be not always generated!"
    316             fi
    317         else
    318             echo "Warning: Apport not installed! This package is required for core dump handling!"
    319         fi
    320     fi
     310    # This is a linux hook.
     311    return 0;
    321312}
    322313
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette