Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / teshsuite / mc / random-bug / random-bug.tesh
1 #!/usr/bin/env tesh
2 ! expect return 1
3 $ $VALGRIND_NO_TRACE_CHILDREN ${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@) Behavior: assert
5 > [  0.000000] (0:maestro@) Start a DFS exploration. Reduction is: dpor.
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@)   Actor 1 in simcall Random([0;5] ~> 3)
11 > [  0.000000] (0:maestro@)   Actor 1 in simcall Random([0;5] ~> 4)
12 > [  0.000000] (0:maestro@) You can debug the problem (and see the whole details) by rerunning out of simgrid-mc with --cfg=model-check/replay:'1/3;1/4'
13 > [  0.000000] (0:maestro@) DFS exploration ended. 27 unique states visited; 22 backtracks (19 transition replays, 68 states visited overall)
14
15 ! expect return 6
16 # because SIMGRID_MC_EXIT_PROGRAM_CRASH = 6
17 $ $VALGRIND_NO_TRACE_CHILDREN ${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@) Behavior: abort
19 > [  0.000000] (0:maestro@) Start a DFS exploration. Reduction is: dpor.
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@)   Actor 1 in simcall Random([0;5] ~> 3)
26 > [  0.000000] (0:maestro@)   Actor 1 in simcall Random([0;5] ~> 4)
27 > [  0.000000] (0:maestro@) You can debug the problem (and see the whole details) by rerunning out of simgrid-mc with --cfg=model-check/replay:'1/3;1/4'
28 > [  0.000000] (0:maestro@) DFS exploration ended. 27 unique states visited; 22 backtracks (19 transition replays, 68 states visited overall)
29
30 $ $VALGRIND_NO_TRACE_CHILDREN ${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
31 > [  0.000000] (0:maestro@) Behavior: printf
32 > [  0.000000] (0:maestro@) Start a DFS exploration. Reduction is: dpor.
33 > [  0.000000] (1:app@Fafard) Error reached
34 > [  0.000000] (0:maestro@) DFS exploration ended. 43 unique states visited; 35 backtracks (30 transition replays, 108 states visited overall)
35
36 ! expect return 6
37 # because SIMGRID_MC_EXIT_PROGRAM_CRASH = 6
38 $ $VALGRIND_NO_TRACE_CHILDREN ${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
39 > [  0.000000] (0:maestro@) Behavior: segv
40 > [  0.000000] (0:maestro@) Start a DFS exploration. Reduction is: dpor.
41 > Segmentation fault.
42 > [  0.000000] (0:maestro@) **************************
43 > [  0.000000] (0:maestro@) ** CRASH IN THE PROGRAM **
44 > [  0.000000] (0:maestro@) **************************
45 > [  0.000000] (0:maestro@) From signal: Segmentation fault
46 > [  0.000000] (0:maestro@) Counter-example execution trace:
47 > [  0.000000] (0:maestro@)   Actor 1 in simcall Random([0;5] ~> 3)
48 > [  0.000000] (0:maestro@)   Actor 1 in simcall Random([0;5] ~> 4)
49 > [  0.000000] (0:maestro@) You can debug the problem (and see the whole details) by rerunning out of simgrid-mc with --cfg=model-check/replay:'1/3;1/4'
50 > [  0.000000] (0:maestro@) DFS exploration ended. 27 unique states visited; 22 backtracks (19 transition replays, 68 states visited overall)