commit f2b4bb1a8479ea6d31854788969afce2a680b2e8
tree a649716a4211e26a711d2a900dfae149c61f7bb3
parent 9ce787041b53993856a169eef8365586568b6e77
author Vincent Chen <vincent.chen@sifive.com> 2026-01-14 18:18:34 +0800
committer Petr Vorel <pvorel@suse.cz> 2026-01-14 17:51:22 +0100

    locking/lock_torture: accept optional "[debug]" in result string
    
    lock_torture.sh parses the lock_torture result from dmesg by
    matching the "End of test: <RESULT>:" line.
    
    When the kernel is built with lock debugging enabled (e.g.
    CONFIG_DEBUG_MUTEXES, CONFIG_DEBUG_RT_MUTEXES, CONFIG_DEBUG_SPINLOCK),
    lock_torture may print "End of test: SUCCESS [debug]: ...".
    The current regexp expects "SUCCESS:" and fails to match, causing the
    test to be reported as failure.
    
    Allow an optional " [debug]" token between the result string and the
    colon so the test can correctly detect SUCCESS on debug kernels.
    
    Link: https://lore.kernel.org/ltp/20260114101834.3397158-1-vincent.chen@sifive.com/
    Reviewed-by: Petr Vorel <pvorel@suse.cz>
    Signed-off-by: Vincent Chen <vincent.chen@sifive.com>


:100755 100755 dfa57373f34ac2e54ef2dfa7a64c234df6dabb09 d9bd95da2a5fd37b64d1e55f37c40557e7f8d2f6 M	testcases/kernel/device-drivers/locking/lock_torture.sh
