Minor modifications to mbed_main call testcase

pull/509/head^2
Przemek Wirkus 2014-09-23 14:42:41 +01:00
parent e3e49cb67d
commit 3271e479b9
1 changed files with 7 additions and 5 deletions

View File

@ -1,13 +1,15 @@
#include "test_env.h" #include "test_env.h"
int called = 0; namespace {
bool mbed_main_called = false;
}
extern "C" void mbed_main() { extern "C" void mbed_main() {
printf("This should be called before main.\n"); printf("MBED: mbed_main() call before main()\r\n");
called = 1; mbed_main_called = true;
} }
int main() { int main() {
printf("main() starts now.\n"); printf("MBED: main() starts now!\r\n");
notify_completion(called == 1); notify_completion(mbed_main_called);
} }