Skip to content

Commit 0fe8223

Browse files
Merge pull request #1828 from kamalsaleh/la
Preserve no_precompiled_code in test runner
2 parents 83640c2 + 49eb157 commit 0fe8223

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

LinearAlgebraForCAP/PackageInfo.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "LinearAlgebraForCAP",
1212
Subtitle := "Category of Matrices over a Field for CAP",
13-
Version := "2026.04-02",
13+
Version := "2026.04-03",
1414
Date := (function ( ) if IsBound( GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE ) then return GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE; else return Concatenation( ~.Version{[ 1 .. 4 ]}, "-", ~.Version{[ 6, 7 ]}, "-01" ); fi; end)( ),
1515
License := "GPL-2.0-or-later",
1616

LinearAlgebraForCAP/tst/testall_no_precompiled_code.g

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@
33
#
44
# This file runs package tests without precompiled code.
55
#
6+
7+
# In the current GAP master START_TEST and STOP_TEST reset the global options
8+
# stack (see https://github.com/gap-system/gap/pull/6215).
9+
# We override them to re-push the no_precompiled_code option after each reset.
10+
_ORIG_START_TEST := START_TEST;
11+
START_TEST := function( name )
12+
_ORIG_START_TEST( name );
13+
if ValueOption( "no_precompiled_code" ) <> true then
14+
PushOptions( rec( no_precompiled_code := true ) );
15+
fi;
16+
end;
17+
18+
_ORIG_STOP_TEST_QUIET := STOP_TEST_QUIET;
19+
STOP_TEST_QUIET := function( args... )
20+
CallFuncList( _ORIG_STOP_TEST_QUIET, args );
21+
if ValueOption( "no_precompiled_code" ) <> true then
22+
PushOptions( rec( no_precompiled_code := true ) );
23+
fi;
24+
end;
25+
626
PushOptions(
727
rec(
828
no_precompiled_code := true,

0 commit comments

Comments
 (0)