dyld-750.5.tar.gz
[apple/dyld.git] / testing / test-cases / dlopen-intertwined.dtest / base.c
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4
5 #include "test_support.h"
6
7 static const char* expectedStrings[] = {
8 "a() from main",
9 "initC",
10 "c() from initB",
11 "c() from initD",
12 "a() from initE",
13 "d() from initF",
14 "DONE"
15 };
16
17 static const char** curState = expectedStrings;
18
19 void setState(const char* from)
20 {
21 // LOG("%s", from);
22 if ( strcmp(*curState, from) != 0 ) {
23 FAIL("Expected %s", *curState);
24 }
25 ++curState;
26 }
27