feat: This is wsl compatible.
This commit is contained in:
13
set.c
13
set.c
@@ -110,6 +110,12 @@ int main(int argc, char** argv)
|
|||||||
printf("\n\n%s", BANNER);
|
printf("\n\n%s", BANNER);
|
||||||
#endif /* ifndef NO_BANNER */
|
#endif /* ifndef NO_BANNER */
|
||||||
|
|
||||||
|
if (!set_up())
|
||||||
|
{
|
||||||
|
fprintf(stderr, "%s\n", "Setup call returned with error. Aborting execution.");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
|
|
||||||
set_bundle_suits(NULL, &counter, true);
|
set_bundle_suits(NULL, &counter, true);
|
||||||
@@ -123,4 +129,11 @@ int main(int argc, char** argv)
|
|||||||
dispatch_test_suits(suits, counter);
|
dispatch_test_suits(suits, counter);
|
||||||
|
|
||||||
free(suits);
|
free(suits);
|
||||||
|
|
||||||
|
if (!tear_down())
|
||||||
|
{
|
||||||
|
fprintf(stderr, "%s\n", "Teardown returned with error.");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
7
set.h
7
set.h
@@ -26,6 +26,13 @@ char *format_string(const char *fmt, ...);
|
|||||||
// To be implemented by user.
|
// To be implemented by user.
|
||||||
void set_bundle_suits(struct SETSuit **suits, int *counter, bool count);
|
void set_bundle_suits(struct SETSuit **suits, int *counter, bool count);
|
||||||
|
|
||||||
|
bool set_up();
|
||||||
|
|
||||||
|
bool tear_down();
|
||||||
|
|
||||||
|
#define SETUP() bool set_up()
|
||||||
|
#define TEAR_DOWN() bool tear_down()
|
||||||
|
|
||||||
#define BUNDLE() \
|
#define BUNDLE() \
|
||||||
void set_bundle_suits(struct SETSuit **suits, int *counter, bool count)
|
void set_bundle_suits(struct SETSuit **suits, int *counter, bool count)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user