#include "deque.h"
-#define ITERATION 1
-
Deque *q;
int a;
int b;
int c;
static void task(void * param) {
- for (int i = 0; i < ITERATION; i++)
- a=steal(q);
+ a=steal(q);
}
int user_main(int argc, char **argv)
{
q=create();
std::thread t(task, (void *)0);
-
- for (int i = 0; i < ITERATION; i++) {
- push(q, 1);
- push(q, 2);
- push(q, 4);
- b=take(q);
- c=take(q);
- }
-
+ push(q, 1);
+ push(q, 2);
+ push(q, 4);
+ b=take(q);
+ c=take(q);
t.join();
bool correct=true;
#!/bin/bash
EXE=$1
-TOTAL_RUN=5 #00
+TOTAL_RUN=500
CDSLIB="/scratch/fuzzer/random-fuzzer"
export LD_LIBRARY_PATH=${CDSLIB}
export C11TESTER='-x1'
# time ${TASKSET} $EXE &> $ERROR_FILE
# OUTPUT=$(< $ERROR_FILE)
- OUTPUT="$(/usr/bin/time -f "time: %U %S" $EXE -x1 2>&1)"
+ OUTPUT="$(/usr/bin/time -f "time: %U %S" $EXE 2>&1)"
RACE="$(echo "$OUTPUT" | grep "race")"
if [ -n "$RACE" ] ; then
((++COUNT_DATA_RACE))