A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
when using doubles, %lg should be used for scanf and %g for printf (which is
[simgrid.git]
/
testsuite
/
xbt
/
set_usage.c
diff --git
a/testsuite/xbt/set_usage.c
b/testsuite/xbt/set_usage.c
index
e31de7b
..
178b421
100644
(file)
--- a/
testsuite/xbt/set_usage.c
+++ b/
testsuite/xbt/set_usage.c
@@
-2,16
+2,14
@@
/* set_usage - A test of normal usage of a set */
/* set_usage - A test of normal usage of a set */
-/* Authors: Martin Quinson */
-/* Copyright (C) 2004 the OURAGAN project. */
+/* Copyright (c) 2004 Martin Quinson. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
/* 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. */
+
*
under the terms of the license (GNU LGPL) which comes with this package. */
#include <stdio.h>
#include <stdio.h>
-#include <assert.h>
-#include
<gras.h>
+#include
"gras.h"
XBT_LOG_NEW_DEFAULT_CATEGORY(test,"Logging specific to this test");
XBT_LOG_EXTERNAL_CATEGORY(set);
XBT_LOG_NEW_DEFAULT_CATEGORY(test,"Logging specific to this test");
XBT_LOG_EXTERNAL_CATEGORY(set);
@@
-190,7
+188,7
@@
int main(int argc,char **argv) {
printf(" - Retrive values\n");
xbt_set_get_by_name(set,"123",(xbt_set_elm_t*)&elm);
printf(" - Retrive values\n");
xbt_set_get_by_name(set,"123",(xbt_set_elm_t*)&elm);
- assert(elm);
+
xbt_
assert(elm);
TRYFAIL(strcmp("123",elm->data));
TRYEXPECT(xbt_set_get_by_name(set,"Can't be found",(xbt_set_elm_t*)&elm),
TRYFAIL(strcmp("123",elm->data));
TRYEXPECT(xbt_set_get_by_name(set,"Can't be found",(xbt_set_elm_t*)&elm),