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"
int called = 0;
namespace {
bool mbed_main_called = false;
}
extern "C" void mbed_main() {
printf("This should be called before main.\n");
called = 1;
printf("MBED: mbed_main() call before main()\r\n");
mbed_main_called = true;
}
int main() {
printf("main() starts now.\n");
notify_completion(called == 1);
printf("MBED: main() starts now!\r\n");
notify_completion(mbed_main_called);
}