[LTP] [PATCH v3 2/4] Add support for mixing C and shell code

Cyril Hrubis chrubis@suse.cz
Fri Sep 6 13:22:49 CEST 2024


Hi!
> > > Here I got test failures on my RPi4 (bash-5.2.21) that the $LINEON can't
> > > be parsed correctly.
> >
> > Are you sure that this is due to bash? My guess is that on RPi the
> > default shell is dash because it's debian based.
> >
> 
> Double checked that is indeed bash.
> 
> liwang@raspi4:~/ltp/testcases/lib$ echo $0
> -bash
> 
> liwang@raspi4:~/ltp/testcases/lib$ echo $SHELL
> /bin/bash
> 
> liwang@raspi4:~/ltp/testcases/lib$ ps -p $$
>     PID TTY          TIME CMD
>  174997 pts/0    00:00:04 bash
> 
> I even manually coded the !#/bin/bash in every test file, the test still
> failed.

The difference is that /bin/sh links to dash in debian. But as you
pointed out even if all /bin/sh is changed to /bin/bash in the scripts
the tests stil fails.

It looks like on RPi alias with variables does not work at all.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list