Skip to content

Commit

Permalink
Reduce test runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
rocallahan committed Nov 7, 2023
1 parent 1475ac4 commit 7524fe1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/sigprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ static void handler(__attribute__((unused)) int sig) { ++count; }

int main(void) {
struct itimerval itv = {
{ 0, 1000 },
{ 0, 1000 },
{ 0, 500 },
{ 0, 500 },
};

test_assert(0 == signal(SIGPROF, handler));
Expand All @@ -18,7 +18,7 @@ int main(void) {
setitimer(ITIMER_REAL, &itv, NULL);
setitimer(ITIMER_PROF, &itv, NULL);

while (count < 2000) {
while (count < 1000) {
}

atomic_puts("EXIT-SUCCESS");
Expand Down

0 comments on commit 7524fe1

Please sign in to comment.