visualtest/launch_harness.sh
author Sylvain Becker <sylvain.becker@gmail.com>
Wed, 30 Jan 2019 16:36:47 +0100
changeset 12584 233b2a61cad1
parent 7924 fcb86d323770
permissions -rwxr-xr-x
Fixed failing SDL_ConvertSurface() when blit has failed.

Some blit combination are not supported (eg ARGB8888 -> SDL_PIXELFORMAT_INDEX1MSB)
So prevent SDL_ConvertSurface from creating a broken surface, which cannot be blitted
icculus@7924
     1
#!/bin/bash
icculus@7924
     2
./testharness.exe --config testsprite2_crashtest.config > testrun.log 2>&1
icculus@7924
     3
if [ "$?" != "0" ]; then
icculus@7924
     4
  echo TEST RUN FAILED (see testrun.log)
icculus@7924
     5
  # report error code to CI
icculus@7924
     6
fi