Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Use C++ containers for visited_states
[simgrid.git] / teshsuite / mc / replay / random_bug.c
index fba41c7..9fbb738 100644 (file)
@@ -1,19 +1,15 @@
-/* Copyright (c) 2014. The SimGrid Team.
+/* Copyright (c) 2014-2015. 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. */
 
-#include <stdio.h>
-
-#include <xbt/log.h>
 #include <simgrid/msg.h>
 #include <simgrid/modelchecker.h>
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(random_bug, "Application");
 
-/** An (fake) application with a bug occuring for some random values
- */
+/** An (fake) application with a bug occuring for some random values */
 static int app(int argc, char *argv[])
 {
   int x = MC_random(0, 5);
@@ -35,6 +31,6 @@ int main(int argc, char *argv[])
   MSG_init(&argc, argv);
   MSG_function_register("app", &app);
   MSG_create_environment(argv[1]);
-  MSG_launch_application(argv[2]);
+  MSG_process_create("app", app, NULL, MSG_get_host_by_name("Tremblay"));
   return MSG_main();
 }