-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
47 lines (38 loc) · 898 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include <cstdlib>
#include <iostream>
#include <sys/types.h>
#include "Nimble.h"
#include "TestSuite.h"
#include "HeaderParser.h"
#include <pthread.h>
using namespace std;
int main(int argc, char** argv) {
/*
pthread_cond_t cond;
pthread_mutex_t mutex;
pthread_mutex_init(&mutex, NULL);
pthread_cond_init(&cond, NULL);
cout << "zzz" << endl;
pthread_cond_signal(&cond);
pthread_cond_wait(&cond, &mutex);
cout << "teeheee" << endl;
*/
/*pid_t pid = fork();
if (pid == 0) {
while(1) {
sleep(1);
cout << "child alive" << endl;
}
} else if (pid < 0) {
cout << "fork error" << endl;
} else {
while(1) {
sleep(1);
cout << "master alive" << endl;
}
} */
TestSuite testSuite;
testSuite.run();
Nimble nimble;
return 0;
}