Skip to content

Commit 0d56321

Browse files
committed
ts: check stickiness prior processing dependent unload
1 parent d826c11 commit 0d56321

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

testsuite/modules.50-cmds/460-sticky.exp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,10 +497,6 @@ setenv_var __MODULES_LMSTICKYRULE sticky/1.0&sticky|sticky
497497

498498
set tserr [msg_unload {sticky/1.0 <S>} $err_stickyunload]\n\n[msg_switch {sticky/1.0 <S>} sticky/99 [err_swoff sticky/1.0] $err_path'sticky/99']
499499
testouterr_cmd_re sh {switch --auto sticky/99} ERR $tserr
500-
501-
set tserr "[msg_unload {sticky/1.0 <S>} [err_prerequn bar/2.0]]
502-
503-
[msg_switch {sticky/1.0 <S>} sticky/99 [err_swoff sticky/1.0] $err_path'sticky/99']"
504500
testouterr_cmd_re sh {switch --no-auto sticky/99} ERR $tserr
505501

506502
set ans [list]
@@ -522,7 +518,7 @@ lappend ans [list set _LMFILES_ $mp/foo/2.0:$mp/bar/2.0]
522518
lappend ans [list set LOADEDMODULES foo/2.0:bar/2.0]
523519
lappend ans [list unset __MODULES_LMTAG]
524520
lappend ans [list ERR]
525-
set tserr "[msg_unload {sticky/1.0 <S>} [err_deplof bar/2.0] $err_stickyunloadf]
521+
set tserr "[msg_unload {sticky/1.0 <S>} $err_stickyunloadf [err_deplof bar/2.0]]
526522

527523
[msg_switch {sticky/1.0 <S>} sticky/99 $err_path'sticky/99']"
528524
testouterr_cmd_re sh {switch --no-auto -f sticky/99} $ans $tserr

testsuite/modules.50-cmds/461-super-sticky.exp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -398,15 +398,7 @@ setenv_var __MODULES_LMPREREQ sticky/1.0&foo|baz:bar/2.0&sticky/1.0
398398

399399
testouterr_cmd_re sh {switch --auto sticky/99} ERR $tserr
400400
testouterr_cmd_re sh {switch --auto -f sticky/1.0 sticky/99} ERR $tserr
401-
402-
set tserr "[msg_unload {sticky/1.0 <sS>} [err_prerequn bar/2.0]]
403-
404-
[msg_switch {sticky/1.0 <sS>} sticky/99 [err_swoff sticky/1.0] $err_path'sticky/99']"
405401
testouterr_cmd_re sh {switch --no-auto sticky/99} ERR $tserr
406-
407-
set tserr "[msg_unload {sticky/1.0 <sS>} [err_deplof bar/2.0] $err_superstickyunload]
408-
409-
[msg_switch {sticky/1.0 <sS>} sticky/99 [err_swoff sticky/1.0] $err_path'sticky/99']"
410402
testouterr_cmd_re sh {switch --no-auto -f sticky/99} ERR $tserr
411403

412404
# switch sticky module within modulefile to a module that does not exist (generic sticky)

testsuite/modules.50-cmds/462-sticky-corner.exp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ unsetenv_loaded_module
429429
unsetenv_var __MODULES_LMTAG
430430

431431
setenv_var TESTSUITE_STICKY 1
432-
set tserr [msg_unload {sticky2/1.0 <aL>} [err_deploi sticky3/1.0]]\n\n[msg_unload {sticky1/1.0 <aL:S>} [err_depun sticky2/1.0]]\n\n[msg_load sticky3/1.0 [err_conun sticky1/1.0]]
432+
set tserr [msg_unload {sticky1/1.0 <aL:S>} $err_stickyunload]\n\n[msg_load sticky3/1.0 [err_conun sticky1/1.0]]
433433
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr
434434

435435
setenv_var TESTSUITE_STICKY 2
@@ -446,6 +446,7 @@ testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr
446446

447447
setenv_var TESTSUITE_STICKY 7
448448
# switched-on module is now resolved prior testing stickiness is preserved
449+
set tserr [msg_unload {sticky2/1.0 <aL>} [err_deploi sticky3/1.0]]\n\n[msg_unload {sticky1/1.0 <aL:S>} [err_depun sticky2/1.0]]\n\n[msg_load sticky3/1.0 [err_conun sticky1/1.0]]
449450
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr
450451

451452
setenv_var TESTSUITE_STICKY 8
@@ -456,7 +457,7 @@ lappend ans [list set LOADEDMODULES sticky0:sticky2/1.0]
456457
lappend ans [list set __MODULES_LMTAG sticky0&auto-loaded&sticky]
457458
set tserr [msg_top_load sticky2/1.0 {} {sticky0} {}]
458459
testouterr_cmd_re sh {load --auto sticky2/1.0} $ans $tserr
459-
set tserr [msg_unload {sticky2/1.0 <aL>} [err_deploi sticky3/1.0]]\n\n[msg_unload {sticky0 <aL:S>} [err_depun sticky2/1.0]]\n\n[msg_load sticky3/1.0 [err_conun sticky0]]
460+
set tserr [msg_unload {sticky0 <aL:S>} $err_stickyunload]\n\n[msg_load sticky3/1.0 [err_conun sticky0]]
460461
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr
461462

462463
setenv_var TESTSUITE_STICKY 9
@@ -468,7 +469,7 @@ lappend ans [list set __MODULES_LMTAG sticky4/sub/1.0&auto-loaded&sticky]
468469
set tserr [msg_top_load sticky2/1.0 {} {sticky4/sub/1.0} {}]
469470
testouterr_cmd_re sh {load --auto sticky2/1.0} $ans $tserr
470471

471-
set tserr [msg_unload {sticky2/1.0 <aL>} [err_deploi sticky3/1.0]]\n\n[msg_unload {sticky4/sub/1.0 <aL:S>} [err_depun sticky2/1.0]]\n\n[msg_load sticky3/1.0 [err_conun sticky4/sub/1.0]]
472+
set tserr [msg_unload {sticky4/sub/1.0 <aL:S>} $err_stickyunload]\n\n[msg_load sticky3/1.0 [err_conun sticky4/sub/1.0]]
472473
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr
473474

474475
setenv_var TESTSUITE_STICKY 10

0 commit comments

Comments
 (0)