Skip to content

Commit

Permalink
CRAZY HACK
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jan 30, 2020
1 parent 33f1e5d commit eb4d0a2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions etc/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,23 @@ GAPInput
exit 1
fi

echo "FOOBAR 1"
if [[ -n ${NO_COVERAGE} ]]
then
echo "FOOBAR 2"
$GAP $SRCDIR/tst/${TEST_SUITE}.g
echo "FOOBAR 3"
else
echo "FOOBAR 4"
$GAP --cover $COVDIR/${TEST_SUITE}.coverage \
<(echo 'SetUserPreference("ReproducibleBehaviour", true);') \
$SRCDIR/tst/${TEST_SUITE}.g
echo "FOOBAR 5"
fi
;;
esac
done

echo "FOOBAR END ci.sh"

exit 0
6 changes: 6 additions & 0 deletions src/gap.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

#include <gmp.h>

#include <stdio.h>
#include <unistd.h>

#ifdef USE_JULIA_GC
Expand Down Expand Up @@ -1140,8 +1141,12 @@ static Obj FuncGAP_EXIT_CODE(Obj self, Obj code)
**
*/

static Obj FuncFORCE_QUIT_GAP(Obj self, Obj args);
static Obj FuncQUIT_GAP(Obj self, Obj args)
{
FuncFORCE_QUIT_GAP(self, args); // HACK


if ( LEN_LIST(args) == 0 ) {
SystemErrorCode = 0;
}
Expand All @@ -1162,6 +1167,7 @@ static Obj FuncQUIT_GAP(Obj self, Obj args)

static Obj FuncFORCE_QUIT_GAP(Obj self, Obj args)
{
fprintf(stderr, "\n\n==== GOODBYE FOOBAR ====\n\n"); // HACK
if ( LEN_LIST(args) == 0 )
{
SyExit(SystemErrorCode);
Expand Down

0 comments on commit eb4d0a2

Please sign in to comment.