Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
this test has been converted
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 27 Mar 2017 14:17:27 +0000 (16:17 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 27 Mar 2017 14:17:27 +0000 (16:17 +0200)
teshsuite/msg/host_on_off_wait/host_on_off_wait.c [deleted file]
teshsuite/msg/host_on_off_wait/host_on_off_wait.tesh [deleted file]

diff --git a/teshsuite/msg/host_on_off_wait/host_on_off_wait.c b/teshsuite/msg/host_on_off_wait/host_on_off_wait.c
deleted file mode 100644 (file)
index c32ac97..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Copyright (c) 2010-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 "simgrid/msg.h"            /* Yeah! If you want to use msg, you need to include simgrid/msg.h */
-
-XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
-
-static int master(int argc, char *argv[])
-{
-  msg_host_t jupiter = MSG_host_by_name("Jupiter");
-  XBT_INFO("Master waiting");
-  MSG_process_sleep(1);
-
-  XBT_INFO("Turning off the slave host");
-  MSG_host_off(jupiter);
-  XBT_INFO("Master has finished");
-
-  return 0;
-}
-
-static int slave(int argc, char *argv[])
-{
-  XBT_INFO("Slave waiting");
-  // TODO, This should really be MSG_HOST_FAILURE
-  MSG_process_sleep(5);
-  XBT_ERROR("Slave should be off already.");
-  return 1;
-}
-
-int main(int argc, char *argv[])
-{
-  msg_error_t res;
-
-  MSG_init(&argc, argv);
-  xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
-
-  MSG_create_environment(argv[1]);
-
-  MSG_process_create("master", master, NULL, MSG_get_host_by_name("Tremblay"));
-  MSG_process_create("slave", slave, NULL, MSG_get_host_by_name("Jupiter"));
-
-  res = MSG_main();
-
-  XBT_INFO("Simulation time %g", MSG_get_clock());
-
-  return res != MSG_OK;
-}
diff --git a/teshsuite/msg/host_on_off_wait/host_on_off_wait.tesh b/teshsuite/msg/host_on_off_wait/host_on_off_wait.tesh
deleted file mode 100644 (file)
index dd378f5..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-$ ./host_on_off_wait ${srcdir:=.}/../../../examples/platforms/small_platform.xml
-> [Tremblay:master:(1) 0.000000] [msg_test/INFO] Master waiting
-> [Jupiter:slave:(2) 0.000000] [msg_test/INFO] Slave waiting
-> [Tremblay:master:(1) 1.000000] [msg_test/INFO] Turning off the slave host
-> [Tremblay:master:(1) 1.000000] [msg_test/INFO] Master has finished
-> [1.000000] [msg_test/INFO] Simulation time 1