Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use IO package in tests #63

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;