Sha256: 43a927a358fda37dff7878f376cd1008685effc566118629a0dacff7fe0d7d4c
Contents?: true
Size: 960 Bytes
Versions: 2
Compression:
Stored size: 960 Bytes
Contents
/* ========================================================================= Ceedling - Test-Centered Build System for C ThrowTheSwitch.org Copyright (c) 2010-25 Mike Karlesky, Mark VanderVoord, & Greg Williams SPDX-License-Identifier: MIT ========================================================================= */ #include <stdlib.h> #include <stdio.h> #include "boss.h" #include "version.h" #define WORK 20 int main(int argc, char *argv[]) { int i; int work[WORK]; int retval; /* output the version */ puts(get_version()); /* This could be more interesting... but honestly, we're just proving this all builds */ boss_start(); /* Hire some workers */ for (i=0; i < 3; i++) { boss_hire_workers( 1 + rand() % 5 ); } /* Fire a few */ boss_fire_workers( rand() % 3 ); /* Do some work */ for (i= 0; i < WORK; i++) { work[i] = rand() % 10; } retval = boss_micro_manage(work, WORK); return retval; }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ceedling-1.0.1 | plugins/dependencies/example/boss/src/main.c |
ceedling-1.0.0 | plugins/dependencies/example/boss/src/main.c |