Skip to content

Commit

Permalink
Added test case
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
  • Loading branch information
richardkchapman committed Oct 9, 2024
1 parent f84c82c commit 4f99d1e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions agentstress.ecl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
rtl := SERVICE
unsigned4 sleep(unsigned4 _delay) : eclrtl,action,library='eclrtl',entrypoint='rtlSleep';
END;

s := 0 : STORED('s');

MyRec := RECORD
STRING5 Value1;
END;

MyRec t1(unsigned c) := transform
SELF.value1 := 'HELL'+rtl.sleep(s);
END;

ds := NOFOLD(DATASET(1, t1(COUNTER)));
a(STRING f) := allnodes(ds(Value1=f));
b(STRING f) := a(f+'1')+a(f+'2')+a(f+'3')+a(f+'4')+a(f+'5')+a(f+'6')+a(f+'7')+a(f+'8')+a(f+'9')+a(f+'10');
c := b('1')+b('2')+b('3')+b('4')+b('5')+b('6')+b('7')+b('8')+b('9')+b('10');
c;

0 comments on commit 4f99d1e

Please sign in to comment.