Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
objectification of MC simcall achieved -- many tests still failing
[simgrid.git] / teshsuite / mc / random-bug / random-bug.cpp
index 21a6313..b7579b5 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2014-2021. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(random_bug, "For this example");
 
-enum class Behavior { ABORT, ASSERT, PRINTF } behavior;
+enum class Behavior { ABORT, ASSERT, PRINTF };
+
+Behavior behavior;
 
 /** A fake application with a bug occurring for some random values */
 static void app()
 {
   int x = MC_random(0, 5);
   int y = MC_random(0, 5);
+  // XBT_INFO("got %d %d",x,y);
 
   if (behavior == Behavior::ASSERT) {
     MC_assert(x != 3 || y != 4);