diff --git a/benchmark/doublecoset/test1.g b/benchmark/doublecoset/test1.g index 05a7fc3e00c..760b52ad6aa 100644 --- a/benchmark/doublecoset/test1.g +++ b/benchmark/doublecoset/test1.g @@ -11,7 +11,7 @@ res := Test( "doublecoset1.tst", rec(showProgress := true) ); Print( "*** RUNTIME ", Runtime()-starttime, "\n" ); if res then - QUIT_GAP(0); + QuitGap(0); else - QUIT_GAP(1); + QuitGap(1); fi; diff --git a/benchmark/doublecoset/test2.g b/benchmark/doublecoset/test2.g index 279a919899f..abdd2ada5e8 100644 --- a/benchmark/doublecoset/test2.g +++ b/benchmark/doublecoset/test2.g @@ -11,7 +11,7 @@ res := Test( "doublecoset2.tst", rec(showProgress := true) ); Print( "*** RUNTIME ", Runtime()-starttime, "\n" ); if res then - QUIT_GAP(0); + QuitGap(0); else - QUIT_GAP(1); + QuitGap(1); fi; diff --git a/benchmark/doublecoset/test3.g b/benchmark/doublecoset/test3.g index a756659fd43..8252ee34d38 100644 --- a/benchmark/doublecoset/test3.g +++ b/benchmark/doublecoset/test3.g @@ -11,7 +11,7 @@ res := Test( "doublecoset3.tst", rec(showProgress := true) ); Print( "*** RUNTIME ", Runtime()-starttime, "\n" ); if res then - QUIT_GAP(0); + QuitGap(0); else - QUIT_GAP(1); + QuitGap(1); fi; diff --git a/benchmark/grpauto/test1.g b/benchmark/grpauto/test1.g index 22b151e6900..e493d2f27b3 100644 --- a/benchmark/grpauto/test1.g +++ b/benchmark/grpauto/test1.g @@ -11,7 +11,7 @@ res := Test( "permiso.tst", rec(showProgress := true) ); Print( "*** RUNTIME ", Runtime()-starttime, "\n" ); if res then - QUIT_GAP(0); + QuitGap(0); else - QUIT_GAP(1); + QuitGap(1); fi; diff --git a/benchmark/grpauto/test2.g b/benchmark/grpauto/test2.g index 4a43df0359a..17c6e23bec1 100644 --- a/benchmark/grpauto/test2.g +++ b/benchmark/grpauto/test2.g @@ -11,7 +11,7 @@ res := Test( "hardiso.tst", rec(showProgress := true) ); Print( "*** RUNTIME ", Runtime()-starttime, "\n" ); if res then - QUIT_GAP(0); + QuitGap(0); else - QUIT_GAP(1); + QuitGap(1); fi; diff --git a/benchmark/grpauto/test3.g b/benchmark/grpauto/test3.g index f3f46136e86..5bb2bee615f 100644 --- a/benchmark/grpauto/test3.g +++ b/benchmark/grpauto/test3.g @@ -11,7 +11,7 @@ res := Test( "hardest.tst", rec(showProgress := true) ); Print( "*** RUNTIME ", Runtime()-starttime, "\n" ); if res then - QUIT_GAP(0); + QuitGap(0); else - QUIT_GAP(1); + QuitGap(1); fi; diff --git a/benchmark/grpconst/test1.g b/benchmark/grpconst/test1.g index bcafed1755e..8042610198c 100644 --- a/benchmark/grpconst/test1.g +++ b/benchmark/grpconst/test1.g @@ -19,7 +19,7 @@ Print("*** RUNTIME ",Runtime()-starttime,"\n"); if has_errors then Print("*** FAIL\n"); - QUIT_GAP(1); + QuitGap(1); else - QUIT_GAP(0); + QuitGap(0); fi; diff --git a/benchmark/grpconst/test2.g b/benchmark/grpconst/test2.g index 0ff823db34a..0ff1844ea94 100644 --- a/benchmark/grpconst/test2.g +++ b/benchmark/grpconst/test2.g @@ -19,7 +19,7 @@ Print("*** RUNTIME ",Runtime()-starttime,"\n"); if has_errors then Print("*** FAIL\n"); - QUIT_GAP(1); + QuitGap(1); else - QUIT_GAP(0); + QuitGap(0); fi; diff --git a/benchmark/grpconst/test3.g b/benchmark/grpconst/test3.g index c6e1006e635..9bedf9bd16d 100644 --- a/benchmark/grpconst/test3.g +++ b/benchmark/grpconst/test3.g @@ -19,7 +19,7 @@ Print("*** RUNTIME ",Runtime()-starttime,"\n"); if has_errors then Print("*** FAIL\n"); - QUIT_GAP(1); + QuitGap(1); else - QUIT_GAP(0); + QuitGap(0); fi; diff --git a/benchmark/primgrp/test1.g b/benchmark/primgrp/test1.g index 582eaae0a23..2bc563e5daa 100644 --- a/benchmark/primgrp/test1.g +++ b/benchmark/primgrp/test1.g @@ -17,7 +17,7 @@ Print("*** RUNTIME ",Runtime()-starttime,"\n"); if has_errors then Print("*** FAIL\n"); - QUIT_GAP(1); + QuitGap(1); else - QUIT_GAP(0); + QuitGap(0); fi; diff --git a/benchmark/primgrp/test2.g b/benchmark/primgrp/test2.g index 8dda9385b2b..0c8de4ccce3 100644 --- a/benchmark/primgrp/test2.g +++ b/benchmark/primgrp/test2.g @@ -17,7 +17,7 @@ Print("*** RUNTIME ",Runtime()-starttime,"\n"); if has_errors then Print("*** FAIL\n"); - QUIT_GAP(1); + QuitGap(1); else - QUIT_GAP(0); + QuitGap(0); fi; diff --git a/benchmark/primgrp/test3.g b/benchmark/primgrp/test3.g index 80a75775dab..148ba359bc9 100644 --- a/benchmark/primgrp/test3.g +++ b/benchmark/primgrp/test3.g @@ -17,7 +17,7 @@ Print("*** RUNTIME ",Runtime()-starttime,"\n"); if has_errors then Print("*** FAIL\n"); - QUIT_GAP(1); + QuitGap(1); else - QUIT_GAP(0); + QuitGap(0); fi; diff --git a/benchmark/smallgrp/test1.g b/benchmark/smallgrp/test1.g index 346d9145437..aa3d7d12799 100644 --- a/benchmark/smallgrp/test1.g +++ b/benchmark/smallgrp/test1.g @@ -18,7 +18,7 @@ Print("*** RUNTIME ",Runtime()-starttime,"\n"); if has_errors then Print("*** FAIL\n"); - QUIT_GAP(1); + QuitGap(1); else - QUIT_GAP(0); + QuitGap(0); fi; diff --git a/benchmark/smallgrp/test2.g b/benchmark/smallgrp/test2.g index 4a39a7c466b..63ca164457f 100644 --- a/benchmark/smallgrp/test2.g +++ b/benchmark/smallgrp/test2.g @@ -18,7 +18,7 @@ Print("*** RUNTIME ",Runtime()-starttime,"\n"); if has_errors then Print("*** FAIL\n"); - QUIT_GAP(1); + QuitGap(1); else - QUIT_GAP(0); + QuitGap(0); fi; diff --git a/benchmark/smallgrp/test3.g b/benchmark/smallgrp/test3.g index 0578f89700a..acf8c3f5ee1 100644 --- a/benchmark/smallgrp/test3.g +++ b/benchmark/smallgrp/test3.g @@ -18,7 +18,7 @@ Print("*** RUNTIME ",Runtime()-starttime,"\n"); if has_errors then Print("*** FAIL\n"); - QUIT_GAP(1); + QuitGap(1); else - QUIT_GAP(0); + QuitGap(0); fi; diff --git a/benchmark/transclosure/test1.g b/benchmark/transclosure/test1.g index c1198c18e66..231052b72ec 100644 --- a/benchmark/transclosure/test1.g +++ b/benchmark/transclosure/test1.g @@ -16,4 +16,4 @@ for i in [1..6] do od; Print("*** RUNTIME ",Runtime()-starttime,"\n"); -QUIT_GAP(0); +QuitGap(0); diff --git a/benchmark/transclosure/test2.g b/benchmark/transclosure/test2.g index 0623d2c06c8..d2310aa1151 100644 --- a/benchmark/transclosure/test2.g +++ b/benchmark/transclosure/test2.g @@ -16,4 +16,4 @@ i:=7; t:=TransitiveClosureBinaryRelation(r); Print("*** RUNTIME ",Runtime()-starttime,"\n"); -QUIT_GAP(0); +QuitGap(0); diff --git a/benchmark/transclosure/test3.g b/benchmark/transclosure/test3.g index 393660c361a..a30fb8c078d 100644 --- a/benchmark/transclosure/test3.g +++ b/benchmark/transclosure/test3.g @@ -16,4 +16,4 @@ i:=8; t:=TransitiveClosureBinaryRelation(r); Print("*** RUNTIME ",Runtime()-starttime,"\n"); -QUIT_GAP(0); +QuitGap(0); diff --git a/benchmark/transgrp/test1.g b/benchmark/transgrp/test1.g index d894f2c6a40..057058108ff 100644 --- a/benchmark/transgrp/test1.g +++ b/benchmark/transgrp/test1.g @@ -12,7 +12,7 @@ l:=Length(MakeTransitiveGroups(12)); Print("*** RUNTIME ",Runtime()-starttime,"\n"); if l<>301 then Print("*** FAIL\n"); - QUIT_GAP(1); + QuitGap(1); else - QUIT_GAP(0); + QuitGap(0); fi; diff --git a/benchmark/transgrp/test2.g b/benchmark/transgrp/test2.g index 7072a0cb742..3f3849b7ce9 100644 --- a/benchmark/transgrp/test2.g +++ b/benchmark/transgrp/test2.g @@ -12,7 +12,7 @@ l:=Length(MakeTransitiveGroups(16)); Print("*** RUNTIME ",Runtime()-starttime,"\n"); if l<>1954 then Print("*** FAIL\n"); - QUIT_GAP(1); + QuitGap(1); else - QUIT_GAP(0); + QuitGap(0); fi; diff --git a/benchmark/transgrp/test3.g b/benchmark/transgrp/test3.g index 357fbf1766c..9026657b3b2 100644 --- a/benchmark/transgrp/test3.g +++ b/benchmark/transgrp/test3.g @@ -12,7 +12,7 @@ l:=Length(MakeTransitiveGroups(20)); Print("*** RUNTIME ",Runtime()-starttime,"\n"); if l<>1117 then Print("*** FAIL\n"); - QUIT_GAP(1); + QuitGap(1); else - QUIT_GAP(0); + QuitGap(0); fi; diff --git a/doc/ref/mloop.xml b/doc/ref/mloop.xml index be0bee07478..1fbd52d7b69 100644 --- a/doc/ref/mloop.xml +++ b/doc/ref/mloop.xml @@ -986,10 +986,10 @@ or brk> or brk_nn> prompt. - + -A GAP_EXIT_CODE sets the return value which will be used when +A GapExitCode sets the return value which will be used when &GAP; exits. This may be an integer, or a boolean (where true is interpreted as 0, and false is interpreted as 1. @@ -998,24 +998,24 @@ A GAP_EXIT_CODE sets the return value which will be used when - + -A QUIT_GAP acts similarly to the keyword quit. It exits +A QuitGap acts similarly to the keyword quit. It exits &GAP; cleanly, calling any function installed using InstallAtExit. -The optional argument will be passed to GAP_EXIT_CODE. +The optional argument will be passed to GapExitCode.

- + -A FORCE_QUIT_GAP is similar to QUIT_GAP, except it ignores any +A ForceQuitGap is similar to QuitGap, except it ignores any functions installed with InstallAtExit, or any other functions normally run at GAP exit, and exits GAP immediately. -The optional argument will be passed to GAP_EXIT_CODE. +The optional argument will be passed to GapExitCode.

diff --git a/doc/ref/testconsistency.g b/doc/ref/testconsistency.g index d15f04bdceb..deafaca293e 100644 --- a/doc/ref/testconsistency.g +++ b/doc/ref/testconsistency.g @@ -240,6 +240,6 @@ end; # Uncomment next line to add ManSections without examples to the test log # CheckDocCoverage(doc); -QUIT_GAP( CheckManSectionTypes(doc) ); +QuitGap( CheckManSectionTypes(doc) ); diff --git a/etc/bisect.sh b/etc/bisect.sh index 9d9ecc63039..76adc71a965 100755 --- a/etc/bisect.sh +++ b/etc/bisect.sh @@ -99,13 +99,13 @@ echo ' # if ErrorLevel is not defined, something is very wrong, so skip the commit if not IsBound(ErrorLevel) then Print("Panic, ErrorLevel not defined, skipping this commit\\n"); - FORCE_QUIT_GAP(125); + ForceQuitGap(125); fi; # intercept any further break loops and again, bail out OnBreak:=function() Print("Panic, break loop was triggered, skipping this commit\\n"); - FORCE_QUIT_GAP(125); + ForceQuitGap(125); end; # check if we are in an error handler... @@ -119,16 +119,16 @@ if ErrorLevel > 0 then else # ... for any other error: tell git to skip this commit Print("Panic, GAP run into an error during startup, skipping this commit\\n"); - FORCE_QUIT_GAP(125); + ForceQuitGap(125); fi; fi; # run the actual test if Test("'${TESTFILE}'") then Print("Commit is good\\n"); - QUIT_GAP(0); + QuitGap(0); else Print("Commit is bad\\n"); - QUIT_GAP(1); + QuitGap(1); fi; ' | bin/gap.sh -A -b -q diff --git a/etc/ci-gather-coverage.sh b/etc/ci-gather-coverage.sh index ecf3dfc59f3..1d949167ad2 100644 --- a/etc/ci-gather-coverage.sh +++ b/etc/ci-gather-coverage.sh @@ -36,7 +36,7 @@ ls -l "$COVDIR" # for debugging $GAP -a 500M -m 500M -q < true then Print("ERROR: could not load profiling package"); - FORCE_QUIT_GAP(1); + ForceQuitGap(1); fi; d := Directory("$COVDIR");; Print("Scanning for coverage data...\n"); diff --git a/etc/ci-prepare.sh b/etc/ci-prepare.sh index 7bc402de487..04c53ffbe2f 100644 --- a/etc/ci-prepare.sh +++ b/etc/ci-prepare.sh @@ -60,7 +60,7 @@ else fi # check that GAP is at least able to start -echo 'Print("GAP started successfully\n");QUIT_GAP(0);' | ./gap -T +echo 'Print("GAP started successfully\n");QuitGap(0);' | ./gap -T # packages must be placed inside SRCDIR, as only that # is a GAP root, while BUILDDIR is not. diff --git a/etc/ci.sh b/etc/ci.sh index b6479fc2cbd..afb8a8864f1 100644 --- a/etc/ci.sh +++ b/etc/ci.sh @@ -89,7 +89,7 @@ do $GAP -b < 1 then Print("*** ", NumTestErrors, " errors occurred.\n"); - GAP_EXIT_CODE(1); + GapExitCode(1); else Print("*** No errors occurred.\n"); fi; diff --git a/hpcgap/lib/hpc/consoleui.g b/hpcgap/lib/hpc/consoleui.g index 0639915ae08..ce932f32071 100644 --- a/hpcgap/lib/hpc/consoleui.g +++ b/hpcgap/lib/hpc/consoleui.g @@ -819,7 +819,7 @@ end); BindGlobal("CommandQUIT@", function(line) TERMINAL_CLOSE(); - FORCE_QUIT_GAP(); + ForceQuitGap(); end); BindGlobal("InitializeCommands@", function() @@ -1087,7 +1087,7 @@ BindGlobal("MULTI_SESSION", function() CompleteHandShake(ProgramShutdown@); PROGRAM_CLEAN_UP(); TERMINAL_CLOSE(); - QUIT_GAP(); + QuitGap(); end); BindGlobal("ConsoleUIRegisterCommand", function(name, func) diff --git a/lib/error.g b/lib/error.g index 5922b2dbfd4..c2116f0a771 100644 --- a/lib/error.g +++ b/lib/error.g @@ -328,7 +328,7 @@ BIND_GLOBAL("ErrorInner", function(options, earlyMessage) and IsBound(OnBreak) and IsFunction(OnBreak) then OnBreak(); fi; - FORCE_QUIT_GAP(1); + ForceQuitGap(1); fi; # OnBreak() is set to Where() by default, which prints the traceback. diff --git a/lib/init.g b/lib/init.g index 5b77e1d0857..ec0ab6796fe 100644 --- a/lib/init.g +++ b/lib/init.g @@ -61,7 +61,7 @@ Error := function( arg ) od; Print("\n"); if SHOULD_QUIT_ON_BREAK() then - FORCE_QUIT_GAP(1); + ForceQuitGap(1); fi; JUMP_TO_CATCH("early error"); end; @@ -73,7 +73,7 @@ ErrorInner := function(options, message) Print("Error before error-handling is initialized: "); Print(message); if SHOULD_QUIT_ON_BREAK() then - FORCE_QUIT_GAP(1); + ForceQuitGap(1); fi; JUMP_TO_CATCH("early error"); end; diff --git a/lib/obsolete.gd b/lib/obsolete.gd index 136559d863d..bb3c78c21f4 100644 --- a/lib/obsolete.gd +++ b/lib/obsolete.gd @@ -760,3 +760,8 @@ BindGlobal("STRING_LIST_DIR", function(dirname) return JoinStringsWithSeparator( list, "\000" ); fi; end); + + +DeclareObsoleteSynonym("GAP_EXIT_CODE", "GapExitCode", 2); +DeclareObsoleteSynonym("QUIT_GAP", "QuitGap", 2); +DeclareObsoleteSynonym("FORCE_QUIT_GAP", "ForceQuitGap", 2); diff --git a/lib/system.g b/lib/system.g index 574587fbb59..b3981eeeb2f 100644 --- a/lib/system.g +++ b/lib/system.g @@ -479,7 +479,7 @@ CallAndInstallPostRestore( function() " Boolean options toggle the current value each time they are called.\n", " Default actions are indicated first.\n", "\n" ); - QUIT_GAP(); + QuitGap(); fi; end ); diff --git a/lib/test.gi b/lib/test.gi index f16b3922fa4..bc7c4b60eb9 100644 --- a/lib/test.gi +++ b/lib/test.gi @@ -808,7 +808,7 @@ InstallGlobalFunction( "TestDirectory", function(arg) opts.testOptions.returnNumFailures := true; if opts.exitGAP then - GAP_EXIT_CODE(1); + GapExitCode(1); fi; files := []; @@ -881,7 +881,7 @@ InstallGlobalFunction( "TestDirectory", function(arg) Print( "#I Errors detected while testing\n\n" ); fi; if opts.exitGAP then - QUIT_GAP(1); + QuitGap(1); fi; return false; fi; @@ -931,9 +931,9 @@ InstallGlobalFunction( "TestDirectory", function(arg) if opts.exitGAP then if testTotalFailures = 0 then - QUIT_GAP(0); + QuitGap(0); else - QUIT_GAP(1); + QuitGap(1); fi; fi; diff --git a/src/gap.c b/src/gap.c index 76717baa3f1..a4b9b898577 100644 --- a/src/gap.c +++ b/src/gap.c @@ -1122,32 +1122,32 @@ static int SetExitValue(Obj code) /**************************************************************************** ** -*F FuncGAP_EXIT_CODE() . . . . . . . . Set the code with which GAP exits. +*F FuncGapExitCode() . . . . . . . . Set the code with which GAP exits. ** */ -static Obj FuncGAP_EXIT_CODE(Obj self, Obj code) +static Obj FuncGapExitCode(Obj self, Obj code) { - if (!SetExitValue(code)) - ErrorQuit("GAP_EXIT_CODE: Argument must be boolean or integer", 0, 0); - return (Obj) 0; + RequireArgumentCondition("GapExitCode", code, SetExitValue(code), + "Argument must be boolean or integer"); + return (Obj)0; } /**************************************************************************** ** -*F FuncQUIT_GAP() +*F FuncQuitGap() ** */ -static Obj FuncQUIT_GAP(Obj self, Obj args) +static Obj FuncQuitGap(Obj self, Obj args) { if ( LEN_LIST(args) == 0 ) { SystemErrorCode = 0; } else if ( LEN_LIST(args) != 1 || !SetExitValue(ELM_PLIST(args, 1) ) ) { - ErrorQuit( "usage: QUIT_GAP( [ ] )", 0, 0); + ErrorQuit( "usage: QuitGap( [ ] )", 0, 0); } STATE(UserHasQUIT) = 1; ReadEvalError(); @@ -1156,11 +1156,11 @@ static Obj FuncQUIT_GAP(Obj self, Obj args) /**************************************************************************** ** -*F FuncFORCE_QUIT_GAP() +*F FuncForceQuitGap() ** */ -static Obj FuncFORCE_QUIT_GAP(Obj self, Obj args) +static Obj FuncForceQuitGap(Obj self, Obj args) { if ( LEN_LIST(args) == 0 ) { @@ -1168,7 +1168,7 @@ static Obj FuncFORCE_QUIT_GAP(Obj self, Obj args) } else if ( LEN_LIST(args) != 1 || !SetExitValue(ELM_PLIST(args, 1) ) ) { - ErrorQuit( "usage: FORCE_QUIT_GAP( [ ] )", 0, 0); + ErrorQuit( "usage: ForceQuitGap( [ ] )", 0, 0); } SyExit(SystemErrorCode); } @@ -1420,9 +1420,9 @@ static StructGVarFunc GVarFuncs[] = { GVAR_FUNC_1ARGS(WindowCmd, args), GVAR_FUNC_1ARGS(MicroSleep, msecs), GVAR_FUNC_1ARGS(Sleep, secs), - GVAR_FUNC_1ARGS(GAP_EXIT_CODE, exitCode), - GVAR_FUNC(QUIT_GAP, -1, "args"), - GVAR_FUNC(FORCE_QUIT_GAP, -1, "args"), + GVAR_FUNC_1ARGS(GapExitCode, exitCode), + GVAR_FUNC(QuitGap, -1, "args"), + GVAR_FUNC(ForceQuitGap, -1, "args"), GVAR_FUNC_0ARGS(SHOULD_QUIT_ON_BREAK), GVAR_FUNC(SHELL, 10, diff --git a/src/system.c b/src/system.c index 29ce9cf23e3..e4ff4dc0fb8 100644 --- a/src/system.c +++ b/src/system.c @@ -272,7 +272,7 @@ UInt SyWindow; ** If ret is 0 'SyExit' should signal to a calling process that all is ok. ** If ret is 1 'SyExit' should signal a failure to the calling process. ** -** If the user calls 'QUIT_GAP' with a value, then the global variable +** If the user calls 'QuitGap' with a value, then the global variable ** 'UserHasQUIT' will be set, and their requested return value will be ** in 'SystemErrorCode'. If the return value would be 0, we check ** this value and use it instead. diff --git a/tst/extractmanuals.g b/tst/extractmanuals.g index 2b27f3f700c..3b42106befe 100644 --- a/tst/extractmanuals.g +++ b/tst/extractmanuals.g @@ -65,4 +65,4 @@ GAPInfo.ManualDataTut.pathtoroot := DirectoriesLibrary(""); WriteExamplesTst( testdir, GAPInfo.ManualDataTut ); # -QUIT_GAP(0); +QuitGap(0); diff --git a/tst/mockpkg/tst/testall.g b/tst/mockpkg/tst/testall.g index d4a5e3b9138..11dd3d6fde2 100644 --- a/tst/mockpkg/tst/testall.g +++ b/tst/mockpkg/tst/testall.g @@ -9,4 +9,4 @@ LoadPackage( "mockpkg" ); TestDirectory(DirectoriesPackageLibrary( "mockpkg", "tst" ), rec(exitGAP := true)); -FORCE_QUIT_GAP(1); # if we ever get here, there was an error +ForceQuitGap(1); # if we ever get here, there was an error diff --git a/tst/testbugfix.g b/tst/testbugfix.g index 49d83d31a4c..811a0c713ea 100644 --- a/tst/testbugfix.g +++ b/tst/testbugfix.g @@ -17,4 +17,4 @@ TestDirectory( [ DirectoriesLibrary( "tst/testbugfix") ] , rec(exitGAP := true, testOptions := rec( width := 80 ) ) ); # Should never get here -FORCE_QUIT_GAP(1); +ForceQuitGap(1); diff --git a/tst/testextra.g b/tst/testextra.g index 7cb95a448d2..63ffd28098a 100644 --- a/tst/testextra.g +++ b/tst/testextra.g @@ -20,4 +20,4 @@ dirs := [ TestDirectory( dirs, rec(exitGAP := true) ); # Should never get here -FORCE_QUIT_GAP(1); +ForceQuitGap(1); diff --git a/tst/testinstall.g b/tst/testinstall.g index cb3c20608c3..53666a94027 100644 --- a/tst/testinstall.g +++ b/tst/testinstall.g @@ -31,4 +31,4 @@ TestDirectory( dirs, rec(exitGAP := true) ); # Should never get here -FORCE_QUIT_GAP(1); +ForceQuitGap(1); diff --git a/tst/testinstall/kernel/gap.tst b/tst/testinstall/kernel/gap.tst index 36d88522d7b..44e749f8e66 100644 --- a/tst/testinstall/kernel/gap.tst +++ b/tst/testinstall/kernel/gap.tst @@ -181,23 +181,24 @@ gap> MicroSleep(0); gap> MicroSleep(1); # -gap> GAP_EXIT_CODE("invalid"); -Error, GAP_EXIT_CODE: Argument must be boolean or integer -gap> GAP_EXIT_CODE(fail); -gap> GAP_EXIT_CODE(false); -gap> GAP_EXIT_CODE(true); +gap> GapExitCode("invalid"); +Error, GapExitCode: Argument must be boolean or integer (not a list (st\ +ring)) +gap> GapExitCode(fail); +gap> GapExitCode(false); +gap> GapExitCode(true); # -gap> QUIT_GAP("invald"); -Error, usage: QUIT_GAP( [ ] ) -gap> QUIT_GAP(1, 2); -Error, usage: QUIT_GAP( [ ] ) +gap> QuitGap("invald"); +Error, usage: QuitGap( [ ] ) +gap> QuitGap(1, 2); +Error, usage: QuitGap( [ ] ) # -gap> FORCE_QUIT_GAP("invald"); -Error, usage: FORCE_QUIT_GAP( [ ] ) -gap> FORCE_QUIT_GAP(1, 2); -Error, usage: FORCE_QUIT_GAP( [ ] ) +gap> ForceQuitGap("invald"); +Error, usage: ForceQuitGap( [ ] ) +gap> ForceQuitGap(1, 2); +Error, usage: ForceQuitGap( [ ] ) # gap> BREAKPOINT(0); diff --git a/tst/testmanuals.g b/tst/testmanuals.g index e181c1d71da..98ee3998950 100644 --- a/tst/testmanuals.g +++ b/tst/testmanuals.g @@ -46,12 +46,12 @@ end; TestManualChapter := function(filename) local testResult; - GAP_EXIT_CODE(1); + GapExitCode(1); testResult := Test(filename, rec( width := 72, compareFunction := "uptowhitespace", reportDiff := ExamplesReportDiff ) ); if not(testResult) then - QUIT_GAP(1); + QuitGap(1); fi; - QUIT_GAP(0); + QuitGap(0); end; diff --git a/tst/testprofiling.g b/tst/testprofiling.g index df8f8b088ab..dac5e875d69 100644 --- a/tst/testprofiling.g +++ b/tst/testprofiling.g @@ -11,4 +11,4 @@ TestDirectory( [ DirectoriesLibrary( "tst/testprofiling" ) ], rec(exitGAP := true) ); # Should never get here -FORCE_QUIT_GAP(1); +ForceQuitGap(1); diff --git a/tst/testspecial/run_all.sh b/tst/testspecial/run_all.sh index c193d26e596..aec18eb75e7 100755 --- a/tst/testspecial/run_all.sh +++ b/tst/testspecial/run_all.sh @@ -8,7 +8,7 @@ GAPDIR=${GAPDIR:-../..} retvalue=0 gap="$GAPDIR/bin/gap.sh" -if "${gap}" -A -b -c 'QUIT_GAP(GAPInfo.BytesPerVariable - 8);'; then +if "${gap}" -A -b -c 'QuitGap(GAPInfo.BytesPerVariable - 8);'; then echo "Running 64-bit special tests" tocheck="*.g 64bit/*.g" else diff --git a/tst/teststandard.g b/tst/teststandard.g index 764ec83376b..8bca607010c 100644 --- a/tst/teststandard.g +++ b/tst/teststandard.g @@ -23,4 +23,4 @@ dirs := [ TestDirectory( dirs, rec(exitGAP := true) ); # Should never get here -FORCE_QUIT_GAP(1); +ForceQuitGap(1);