Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
8e097de364ef984e7242e517d02f2fcf1430e8a3
[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:%P@%h)%e%m%n" --log=xbt_cfg.thresh:warning
4 > [  0.000000] (0:maestro@) Check a safety property. Reduction is: dpor.
5 > 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)Fafard (app)] MC_RANDOM(3)
11 > [  0.000000] (0:maestro@)   [(1)Fafard (app)] MC_RANDOM(4)
12 > [  0.000000] (0:maestro@) Path = 1/3;1/4
13 > [  0.000000] (0:maestro@) Expanded states = 27
14 > [  0.000000] (0:maestro@) Visited states = 68
15 > [  0.000000] (0:maestro@) Executed transitions = 46
16
17 ! expect return 6
18 # because SIMGRID_MC_EXIT_PROGRAM_CRASH = 6
19 $ ${bindir:=.}/../../../bin/simgrid-mc ${bindir:=.}/random-bug abort ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" --log=xbt_cfg.thresh:warning --log=no_loc
20 > [  0.000000] (0:maestro@) Check a safety property. Reduction is: dpor.
21 > Behavior: abort
22 > [  0.000000] (0:maestro@) **************************
23 > [  0.000000] (0:maestro@) ** CRASH IN THE PROGRAM **
24 > [  0.000000] (0:maestro@) **************************
25 > [  0.000000] (0:maestro@) From signal: Aborted
26 > [  0.000000] (0:maestro@) No core dump was generated by the system.
27 > [  0.000000] (0:maestro@) Counter-example execution trace:
28 > [  0.000000] (0:maestro@)   [(1)Fafard (app)] MC_RANDOM(0)
29 > [  0.000000] (0:maestro@)   [(1)Fafard (app)] MC_RANDOM(0)
30 > [  0.000000] (0:maestro@) Path = 1;1
31 > [  0.000000] (0:maestro@) Expanded states = 2
32 > [  0.000000] (0:maestro@) Visited states = 2
33 > [  0.000000] (0:maestro@) Executed transitions = 2
34 > [  0.000000] (0:maestro@) Stack trace not displayed because you passed --log=no_loc
35
36 $ ${bindir:=.}/../../../bin/simgrid-mc ${bindir:=.}/random-bug printf ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" --log=xbt_cfg.thresh:warning
37 > [  0.000000] (0:maestro@) Check a safety property. Reduction is: dpor.
38 > Behavior: printf
39 > Error reached
40 > [  0.000000] (0:maestro@) No property violation found.
41 > [  0.000000] (0:maestro@) Expanded states = 43
42 > [  0.000000] (0:maestro@) Visited states = 108
43 > [  0.000000] (0:maestro@) Executed transitions = 72