Skip to content

Commit

Permalink
Add COUNT_OPERS to GAP_KERNEL_DEBUG
Browse files Browse the repository at this point in the history
Tweak OPERS_CACHE test to support COUNT_OPERS
enabled. Do not check the complete value of
OPERS_CACHE_INFO as it is quite unstable
between GAP versions
  • Loading branch information
ChrisJefferson authored and fingolfin committed May 17, 2018
1 parent 96af41f commit 681fbbd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

// Enable various GAP debugging features
#define COUNT_BAGS
#define COUNT_OPERS
#else
#define GAP_ASSERT(x)
#endif
Expand Down
14 changes: 12 additions & 2 deletions tst/testinstall/kernel/opers.tst
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,18 @@ Error, <obj> must be a component object

#
gap> CLEAR_CACHE_INFO();
gap> OPERS_CACHE_INFO();
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
gap> opcheck := OPERS_CACHE_INFO();;
gap> if GAPInfo.KernelInfo.KernelDebug then
> if IsHPCGAP then
> ops := [ 0, 0, 0, 6, 0, 0, 4, 0, 0, 0, 0];
> else
> ops := [ 0, 0, 0, 7, 0, 0, 2, 0, 0, 0, 0];
> fi;
> else
> ops := [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
> fi;
gap> opcheck{[1..11]} = ops;
true

#
# method tracing
Expand Down

0 comments on commit 681fbbd

Please sign in to comment.