${CMAKE_HOME_DIRECTORY}/examples/deprecated/msg/${x}/${x}.tesh)
endforeach()
-set_tesh_properties(msg-platform-failures "raw;boost" WILL_FAIL TRUE) # FIXME
-
foreach (x trace-categories trace-route-user-variables trace-link-user-variables trace-masterworker trace-process-migration trace-host-user-variables)
ADD_TESH(msg-${x} --setenv bindir=${CMAKE_BINARY_DIR}/examples/deprecated/msg/${x}
--setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/deprecated/msg/${x}
${CMAKE_HOME_DIRECTORY}/examples/s4u/${example}/s4u-${example}.tesh)
endforeach()
-set_tesh_properties(s4u-platform-failures "raw;boost" WILL_FAIL TRUE) # FIXME
-
# Multi-files examples
######################
default:
xbt_die("Internal error in SIMIX_execution_finish: unexpected synchro state %d", (int)exec->state_);
}
- /* Fail the process if the host is down */
- if (simcall->issuer->host_->is_off())
- simcall->issuer->context_->iwannadie = true;
simcall->issuer->waiting_synchro = nullptr;
simcall_execution_wait__set__result(simcall, exec->state_);
- SIMIX_simcall_answer(simcall);
+
+ /* Fail the process if the host is down */
+ if (simcall->issuer->host_->is_off())
+ simcall->issuer->context_->iwannadie = true;
+ else
+ SIMIX_simcall_answer(simcall);
}
}
xbt_die("Internal error in SIMIX_io_finish: unexpected synchro state %d", static_cast<int>(synchro->state_));
}
- if (simcall->issuer->host_->is_off()) {
- simcall->issuer->context_->iwannadie = true;
- }
-
simcall->issuer->waiting_synchro = nullptr;
- SIMIX_simcall_answer(simcall);
+ if (simcall->issuer->host_->is_off())
+ simcall->issuer->context_->iwannadie = true;
+ else
+ SIMIX_simcall_answer(simcall);
}
}
}
}
- if (simcall->issuer->host_->is_off())
- simcall->issuer->context_->iwannadie = true;
-
simcall->issuer->waiting_synchro = nullptr;
simcall->issuer->comms.remove(synchro);
if(comm->detached){
}
}
- SIMIX_simcall_answer(simcall);
+ if (simcall->issuer->host_->is_off())
+ simcall->issuer->context_->iwannadie = true;
+ else
+ SIMIX_simcall_answer(simcall);
}
}
smx_simcall_t simcall = synchro->simcalls_.front();
synchro->simcalls_.pop_front();
- if (synchro->state_ != SIMIX_SRC_TIMEOUT) {
- if (synchro->state_ == SIMIX_FAILED)
- simcall->issuer->context_->iwannadie = true;
- else
- THROW_IMPOSSIBLE;
- }
-
SIMIX_synchro_stop_waiting(simcall->issuer, simcall);
simcall->issuer->waiting_synchro = nullptr;
- SIMIX_simcall_answer(simcall);
+
+ if (synchro->state_ != SIMIX_SRC_TIMEOUT) {
+ xbt_assert(synchro->state_ == SIMIX_FAILED);
+ simcall->issuer->context_->iwannadie = true;
+ } else {
+ SIMIX_simcall_answer(simcall);
+ }
XBT_OUT();
}