Skip to content

Commit

Permalink
Don't use IO package in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Sep 5, 2024
1 parent f011b51 commit 80e8def
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 1 addition & 3 deletions tst/testall.g
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#
#
# This file runs package tests. It is also referenced in the package
# metadata in PackageInfo.g.
#
LoadPackage( "io" );
LoadPackage( "ferret" );

# Sanity check that we loaded ferret correctly
Expand All @@ -17,4 +15,4 @@ dirs := DirectoriesPackageLibrary( "ferret", "tst" );

TestDirectory(dirs, rec(exitGAP := true));

IO_exit(1);
FORCE_QUIT_GAP(1);
3 changes: 1 addition & 2 deletions tst/testlong.g
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# This file runs a longer version of tests
#
#
LoadPackage( "io" );
LoadPackage( "ferret" );


Expand All @@ -21,4 +20,4 @@ dirs := DirectoriesPackageLibrary( "ferret", "tst" );

TestDirectory(dirs, rec(exitGAP := true));

IO_exit(1);
FORCE_QUIT_GAP(1);
5 changes: 2 additions & 3 deletions tst/testvalgrind.g
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# This file is designed to just run one test, 'testvalgrind.tst', which we run
# through the 'valgrind' system, to check for memory issues

LoadPackage("io");
if Test( Filename(DirectoriesPackageLibrary( "ferret", "tst/tstfiles" ),"testvalgrind.tst"), rec(showProgress := true) ) = true then
IO_exit(0);
FORCE_QUIT_GAP(0);
else
IO_exit(1);
FORCE_QUIT_GAP(1);
fi;

0 comments on commit 80e8def

Please sign in to comment.