From: Frederic Suter Date: Thu, 13 Jul 2017 07:33:53 +0000 (+0200) Subject: fix 32-bit storage tests X-Git-Tag: v3_17~403 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7e9d34f456d7a049c5cd62950b2cc53abd48837d fix 32-bit storage tests The modification of the N11 storage model uses a rounding method so that entire numbers of bytes are written at each action update. This causes a slight difference of 30 nanoseconds in the total execution time of the example. Assume that we can leave with that and just print time up to the millisecond. Moreover this model is going to change again soon. --- diff --git a/examples/msg/io-file/io-file.c b/examples/msg/io-file/io-file.c index 4f7f0799ec..c0ad633899 100644 --- a/examples/msg/io-file/io-file.c +++ b/examples/msg/io-file/io-file.c @@ -99,6 +99,6 @@ int main(int argc, char **argv) xbt_dynar_free(&hosts); int res = MSG_main(); - XBT_INFO("Simulation time %g", MSG_get_clock()); + XBT_INFO("Simulation time %.6f", MSG_get_clock()); return res != MSG_OK; } diff --git a/examples/msg/io-file/io-file.tesh b/examples/msg/io-file/io-file.tesh index c6915ff75a..e0483eb297 100644 --- a/examples/msg/io-file/io-file.tesh +++ b/examples/msg/io-file/io-file.tesh @@ -53,4 +53,4 @@ $ ${bindir:=.}/io-file ${srcdir:=.}/storage/storage.xml "--log=root.fmt:[%10.6r] > [ 0.008326] (3:host@carl) Have written 110000 in '/home/doc/simgrid/examples/platforms/g5k_cabinets.xml'. Size now is: 110000 > [ 0.008326] (3:host@carl) Capacity of the storage element '/home/doc/simgrid/examples/platforms/g5k_cabinets.xml' is stored on: 37020686 / 536870912000 > [ 0.008326] (3:host@carl) Close file '/home/doc/simgrid/examples/platforms/g5k_cabinets.xml' -> [ 0.008326] (0:maestro@) Simulation time 0.00832645 +> [ 0.008326] (0:maestro@) Simulation time 0.008326