+ /* This prints: "Count: 3; Options: mquinson;ecaron;alegrand;" */
+ xbt_cfg_free(&myset);
+ }
+
+ fprintf(stderr,"==== Try to use an unregistered option. (ERROR EXPECTED: 'color' not registered)\n");
+ {
+ xbt_cfg_t myset=make_set();
+ TRY {
+ xbt_cfg_set_parse(myset,"color:blue");
+ THROW1(mismatch_error,0,"Found an option which shouldn't be there (%s)","color:blue");
+ } CATCH(e) {
+ if (e.category != not_found_error)
+ RETHROW;
+ xbt_ex_free(e);
+ }
+ /* This spits an error: 'color' not registered */
+ xbt_cfg_free(&myset);
+ }