Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Specify actor in the MC traces
[simgrid.git] / teshsuite / mc / random-bug / random-bug.tesh
1 #!/usr/bin/env tesh
2 ! expect return 1
3 $ ${bindir:=.}/../../../bin/simgrid-mc ${bindir:=.}/random-bug assert ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n" --log=xbt_cfg.thresh:warning
4 > [  0.000000] (0:maestro@) Start a DFS exploration. Reduction is: dpor.
5 > [  0.000000] (0:maestro@) Behavior: assert
6 > [  0.000000] (0:maestro@) **************************
7 > [  0.000000] (0:maestro@) *** PROPERTY NOT VALID ***
8 > [  0.000000] (0:maestro@) **************************
9 > [  0.000000] (0:maestro@) Counter-example execution trace:
10 > [  0.000000] (0:maestro@)   1: Random([0;5] ~> 3)
11 > [  0.000000] (0:maestro@)   1: Random([0;5] ~> 4)
12 > [  0.000000] (0:maestro@) Path = 1/3;1/4
13 > [  0.000000] (0:maestro@) DFS exploration ended. 27 unique states visited; 22 backtracks (68 transition replays, 19 states visited overall)
14
15 ! expect return 6
16 # because SIMGRID_MC_EXIT_PROGRAM_CRASH = 6
17 $ ${bindir:=.}/../../../bin/simgrid-mc ${bindir:=.}/random-bug abort ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n" --log=xbt_cfg.thresh:warning --log=no_loc
18 > [  0.000000] (0:maestro@) Start a DFS exploration. Reduction is: dpor.
19 > [  0.000000] (0:maestro@) Behavior: abort
20 > [  0.000000] (0:maestro@) **************************
21 > [  0.000000] (0:maestro@) ** CRASH IN THE PROGRAM **
22 > [  0.000000] (0:maestro@) **************************
23 > [  0.000000] (0:maestro@) From signal: Aborted
24 > [  0.000000] (0:maestro@) Counter-example execution trace:
25 > [  0.000000] (0:maestro@)   1: Random([0;5] ~> 3)
26 > [  0.000000] (0:maestro@)   1: Random([0;5] ~> 4)
27 > [  0.000000] (0:maestro@) Path = 1/3;1/4
28 > [  0.000000] (0:maestro@) DFS exploration ended. 27 unique states visited; 22 backtracks (68 transition replays, 19 states visited overall)
29 > [  0.000000] (0:maestro@) Stack trace not displayed because you passed --log=no_loc
30
31 $ ${bindir:=.}/../../../bin/simgrid-mc ${bindir:=.}/random-bug printf ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n" --log=xbt_cfg.thresh:warning
32 > [  0.000000] (0:maestro@) Start a DFS exploration. Reduction is: dpor.
33 > [  0.000000] (0:maestro@) Behavior: printf
34 > [  0.000000] (1:app@Fafard) Error reached
35 > [  0.000000] (0:maestro@) DFS exploration ended. 43 unique states visited; 36 backtracks (108 transition replays, 30 states visited overall)
36
37 ! expect return 6
38 # because SIMGRID_MC_EXIT_PROGRAM_CRASH = 6
39 $ ${bindir:=.}/../../../bin/simgrid-mc ${bindir:=.}/random-bug segv ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n" --log=xbt_cfg.thresh:warning --log=no_loc
40 > [  0.000000] (0:maestro@) Start a DFS exploration. Reduction is: dpor.
41 > [  0.000000] (0:maestro@) Behavior: segv
42 > Segmentation fault.
43 > [  0.000000] (0:maestro@) **************************
44 > [  0.000000] (0:maestro@) ** CRASH IN THE PROGRAM **
45 > [  0.000000] (0:maestro@) **************************
46 > [  0.000000] (0:maestro@) From signal: Segmentation fault
47 > [  0.000000] (0:maestro@) Counter-example execution trace:
48 > [  0.000000] (0:maestro@)   1: Random([0;5] ~> 3)
49 > [  0.000000] (0:maestro@)   1: Random([0;5] ~> 4)
50 > [  0.000000] (0:maestro@) Path = 1/3;1/4
51 > [  0.000000] (0:maestro@) DFS exploration ended. 27 unique states visited; 22 backtracks (68 transition replays, 19 states visited overall)
52 > [  0.000000] (0:maestro@) Stack trace not displayed because you passed --log=no_loc