Home
       tests/as: Allow lines without expected data - scc - simple c99 compiler
  HTML git clone git://git.simple-cc.org/scc
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit 251fc888acd5500b813fc2d861daa2cbab45f895
   DIR parent bfb5950b41f6430471d841f21f23a745029e45b5
  HTML Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
       Date:   Sun, 11 Feb 2024 08:26:24 +0100
       
       tests/as: Allow lines without expected data
       
       The test.sh script expected a comment with the binary data
       produced by every line, but there cases cases like for example
       EQU statements where they don't produce any binary data.
       
       Diffstat:
         M tests/as/execute/test.sh            |       1 +
       
       1 file changed, 1 insertion(+), 0 deletions(-)
       ---
   DIR diff --git a/tests/as/execute/test.sh b/tests/as/execute/test.sh
       @@ -14,6 +14,7 @@ trap "rm -f a.out $tmp1 $tmp2" 0 2 3
        as-$cpu $file
        
        sed -n '/^\#/ ! {
       +        /\#/ ! d
                s%.*#%%
                s%^[         ]*%%
                s%[         ]*$%%