@@ -6,28 +6,28 @@ load './util/init.sh'
66# actual execution of the functions on the signal. There seems to be a limitation
77# of Bats that prevents this from working
88
9- @test " Fails when function specified does not exist" {
9+ @test " core.trap_add fails when function specified does not exist" {
1010 run core.trap_add ' nonexistent' ' USR1'
1111
1212 assert_failure
1313 assert_output -p " Function 'nonexistent' is not defined"
1414}
1515
16- @test " Fails when number is given for signal" {
16+ @test " core.trap_add fails when number is given for signal" {
1717 run core.trap_add ' function' ' 0'
1818
1919 assert_failure
2020 assert_output -p " Passing numbers for the signal specs is prohibited"
2121}
2222
23- @test " adds trap function properly" {
23+ @test " core.trap_add adds trap function properly" {
2424 somefunction () { : ; }
2525 core.trap_add ' somefunction' ' USR1'
2626
2727 [ " ${___global_trap_table___[USR1]} " = $' \x1C somefunction' ]
2828}
2929
30- @test " adds trap function properly 2" {
30+ @test " core.trap_add adds function properly 2" {
3131 somefunction () { : ; }
3232 somefunction2 () { : ; }
3333 core.trap_add ' somefunction' ' USR1'
@@ -36,15 +36,15 @@ load './util/init.sh'
3636 [ " ${___global_trap_table___[USR1]} " = $' \x1C somefunction\x1C somefunction2' ]
3737}
3838
39- @test " removes trap function properly 1" {
39+ @test " core.trap_remove removes trap function properly 1" {
4040 somefunction () { : ; }
4141 core.trap_add ' somefunction' ' USR1'
4242 core.trap_remove ' somefunction' ' USR1'
4343
4444 [ " ${___global_trap_table___[USR1]} " = ' ' ]
4545}
4646
47- @test " removes trap function properly 2" {
47+ @test " core.trap_remove removes trap function properly 2" {
4848 somefunction () { : ; }
4949 somefunction2 () { : ; }
5050 core.trap_add ' somefunction' ' USR1'
@@ -54,7 +54,7 @@ load './util/init.sh'
5454 [ " ${___global_trap_table___[USR1]} " = $' \x1C somefunction2' ]
5555}
5656
57- @test " removes trap function properly 3" {
57+ @test " core.trap_remove removes trap function properly 3" {
5858 somefunction () { : ; }
5959 somefunction2 () { : ; }
6060 core.trap_add ' somefunction' ' USR1'
0 commit comments