12345678910111213141516171819202122232425262728293031323334353637383940 |
- #!/bin/sh
- # SPDX-License-Identifier: GPL-2.0-or-later
- # Copyright (c) International Business Machines Corp., 2001
- # Author: Manoj Iyer <manjo@mail.utexas.edu>
- #
- # Basic mkdir tests
- TST_CNT=1
- TST_SETUP=setup
- TST_TESTFUNC=test
- TST_NEEDS_TMPDIR=1
- . tst_test.sh
- setup()
- {
- #ROD apt-get update
- ROD apt-get install expat -y --force-yes
- }
- test1()
- {
- strres=`objdump -p /usr/bin/gdb |grep libexpat`
- if [[ "$strres" == "*NEEDED*" ]]
- then
- result = `gdb -v`
- if [[ "$result" == "*GNU gdb (GDB)*" ]]
- then
- tst_res TPASS "Got correct error message"
- tst_res TCONF "Library name XXX Skipped"
- else
- tst_res TFAIL "Got wrong error message"
- echo $resut
- else
- tst_res TFAIL "Got wrong error message"
- echo $strres
- fi
- }
- tst_run
|