Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use assignment to non-trivial class rather than artificial trivialization and memset
[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 > [  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)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 > [  0.000000] (0:maestro@) 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@) Counter-example execution trace:
27 > [  0.000000] (0:maestro@)   [(1)Fafard (app)] MC_RANDOM(0)
28 > [  0.000000] (0:maestro@)   [(1)Fafard (app)] MC_RANDOM(0)
29 > [  0.000000] (0:maestro@) Path = 1;1
30 > [  0.000000] (0:maestro@) Expanded states = 2
31 > [  0.000000] (0:maestro@) Visited states = 2
32 > [  0.000000] (0:maestro@) Executed transitions = 2
33 > [  0.000000] (0:maestro@) Stack trace not displayed because you passed --log=no_loc
34
35 $ ${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
36 > [  0.000000] (0:maestro@) Check a safety property. Reduction is: dpor.
37 > [  0.000000] (0:maestro@) Behavior: printf
38 > [  0.000000] (1:app@Fafard) Error reached
39 > [  0.000000] (0:maestro@) No property violation found.
40 > [  0.000000] (0:maestro@) Expanded states = 43
41 > [  0.000000] (0:maestro@) Visited states = 108
42 > [  0.000000] (0:maestro@) Executed transitions = 72