From 85ef40ae60f69070f3ad07b6927d403902e857c8 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sat, 27 Aug 2016 15:01:35 +0200 Subject: [PATCH 1/1] make it possible to start this example without parameters --- examples/msg/cloud-simple/cloud-simple.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/msg/cloud-simple/cloud-simple.c b/examples/msg/cloud-simple/cloud-simple.c index 3af0a8c8c1..7129ee5c9d 100644 --- a/examples/msg/cloud-simple/cloud-simple.c +++ b/examples/msg/cloud-simple/cloud-simple.c @@ -270,8 +270,10 @@ int main(int argc, char *argv[]) MSG_init(&argc, argv); /* load the platform file */ - xbt_assert(argc == 2); - MSG_create_environment(argv[1]); + const char* platform = "../../platforms/small_platform.xml"; + if (argc == 2) + platform = argv[1]; + MSG_create_environment(platform); msg_host_t pm0 = MSG_host_by_name("Fafard"); launch_master(pm0); -- 2.20.1